/* Kahraman ayrıntısı */

/* ---------------------------------------------------------------- giriş (10. tur): oyunun kahraman seçimi arka planı + kahraman kartı
   Arka plan oyundaki kahraman seçim ekranının posteri (sağda), solda kartı eğilen ve parlayan kahraman, ortada kimlik. */
.kh-bas { position: relative; overflow-x: clip; border-bottom: 1px solid var(--cizgi); --kr: var(--turuncu); --mx: 0; --my: 0; background: #060606; }
/* taşanı yalnız zemin keser; rütbe ve kahraman seçicilerin açılır listesi girişin dışına taşabilsin */
.kh-zemin { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kh-poster { position: absolute; inset: -4% -3%; background: right center / cover no-repeat; opacity: .95; filter: brightness(1.3) saturate(1.15);
  translate: calc(var(--mx) * -16px) calc(var(--my) * -9px); }
html.hareket .kh-poster { animation: posterGel 1.6s cubic-bezier(.2, .7, .2, 1) backwards, kenburns 40s ease-in-out 1.6s infinite alternate; }
@keyframes posterGel { from { opacity: 0; transform: scale(1.12); filter: brightness(.2) saturate(.4); } }
.kh-isik { position: absolute; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(40% 70% at 16% 60%, color-mix(in srgb, var(--kr) 34%, transparent), transparent 70%); }
html.hareket .kh-isik { animation: nurNefes 6s ease-in-out infinite; }
@keyframes nurNefes { 50% { opacity: .55; } }
.kh-bas::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  background: linear-gradient(90deg, rgba(6, 6, 6, .9) 0%, rgba(6, 6, 6, .72) 38%, rgba(6, 6, 6, .2) 72%, rgba(6, 6, 6, .35)),
    linear-gradient(0deg, var(--zemin) 0%, transparent 34%), linear-gradient(180deg, rgba(6, 6, 6, .55), transparent 22%); }
.kh-bas-ic { position: relative; z-index: 22; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 44px; align-items: center; padding: 52px 0 44px; min-height: 500px; }
.kh-sahne { position: relative; perspective: 1000px; display: grid; place-items: center; }
.kh-kart { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; position: relative; width: 290px; aspect-ratio: 280 / 380; border-radius: 16px; overflow: hidden; background: var(--kart-3);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-2.5deg); transform-style: preserve-3d;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--kr) 75%, transparent), 0 34px 70px rgba(0, 0, 0, .7), 0 0 80px color-mix(in srgb, var(--kr) 30%, transparent); }
.kh-kart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
/* Görseller dekupe (kenarları şeffaf): öteki yüz gelirken eski yüz tamamen kaybolur, arkadan görünmez */
.kh-kart-b { opacity: 0; }
.kh-kart:hover .kh-kart-b { opacity: 1; }
.kh-kart:hover .kh-kart-a { opacity: 0; }
.kh-kart::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--kr) 40%, transparent), transparent 42%); }
.kh-parilti { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .5), transparent 46%); }
html.hareket .kh-kart { animation: kartCek 1.1s cubic-bezier(.2, .8, .2, 1.1) .1s backwards; }
@keyframes kartCek { from { opacity: 0; transform: rotateY(-75deg) translateX(-60px) rotate(-8deg); } }
html.hareket .kh-kart::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%); animation: parla 1.2s ease-out 1s forwards; }
@keyframes parla { to { transform: translateX(120%); } }
/* silah çizimi kartın arkasından görünür */
.kh-silah { position: absolute; z-index: 3; width: 290px; left: 12%; bottom: -12px; transform: rotate(-16deg); pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .75)) drop-shadow(0 0 18px color-mix(in srgb, var(--kr) 35%, transparent)); translate: calc(var(--mx) * 14px) calc(var(--my) * 8px); }
html.hareket .kh-silah { animation: silahGel 1.2s cubic-bezier(.2, .8, .2, 1) .45s backwards; }
@keyframes silahGel { from { opacity: 0; transform: translateX(40%) rotate(4deg); } }
.kh-kimlik { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.kh-kimlik .etiket { background: var(--kr); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.kh-kimlik h1 { font-size: clamp(44px, 6vw, 84px); line-height: .98; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
html.hareket .kh-kimlik > * { animation: belir .7s cubic-bezier(.2, .7, .2, 1) backwards; }
html.hareket .kh-kimlik > :nth-child(2) { animation-delay: .06s; }
html.hareket .kh-kimlik > :nth-child(3) { animation-delay: .12s; }
html.hareket .kh-kimlik > :nth-child(4) { animation-delay: .18s; }
html.hareket .kh-kimlik > :nth-child(5) { animation-delay: .24s; }
.kh-etiketler { display: flex; flex-wrap: wrap; gap: 6px; }
.kh-zorluk { gap: 8px; }
.elmaslar { display: inline-flex; gap: 4px; }
.elmaslar i { width: 8px; height: 8px; transform: rotate(45deg); background: rgba(247, 233, 213, .22); }
.elmaslar.z1 i:nth-child(-n+1) { background: var(--yesil); box-shadow: 0 0 6px var(--yesil); }
.elmaslar.z2 i:nth-child(-n+2) { background: var(--sari); box-shadow: 0 0 6px var(--sari); }
.elmaslar.z3 i { background: var(--turuncu-2); box-shadow: 0 0 6px var(--turuncu-2); }
.kh-ozet { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-ozet > div { display: grid; gap: 4px; min-width: 112px; padding: 12px 14px; border-radius: 10px; background: rgba(7, 7, 7, .66); border: 1px solid var(--cizgi-2); backdrop-filter: blur(6px); }
.kh-ozet small { font: 600 10.5px/1 var(--f-arayuz); letter-spacing: .12em; text-transform: uppercase; color: var(--krem-3); }
.kh-ozet b { font: 700 24px/1 var(--f-baslik); }
.kh-ozet .fark { font-size: 12px; }
.kh-alt { font: 500 11.5px/1.2 var(--f-arayuz); color: var(--krem-3); }
.kh-kademe { justify-items: center; align-content: center; }
.kh-kademe .tpill { width: 46px; height: 46px; font-size: 28px; }
.kh-araclar { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-etiketler .cip svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

/* ---------------------------------------------------------------- genel */
.kh-genel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
.kh-degerler { display: grid; gap: 18px; align-content: start; }
.kh-deger-grup h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; }
.kh-deger-grup h3 svg { width: 18px; height: 18px; color: var(--turuncu-2); }
.kh-deger-grup h3 small { margin-left: auto; font: 500 12.5px/1 var(--f-arayuz); text-transform: none; color: var(--krem-3); }
.kh-deger { display: flex; justify-content: space-between; gap: 12px; padding: 7px 4px; border-bottom: 1px dashed var(--cizgi); font: 500 14px/1.2 var(--f-arayuz); color: var(--krem-2); }
.kh-deger:last-child { border-bottom: 0; }
.kh-deger b { color: var(--krem); font-variant-numeric: tabular-nums; }
.kh-yedi { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
#kh-seri { position: relative; min-height: 250px; }
#kh-seri > div { position: absolute; inset: 0; }
.kh-yedi-ozet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kh-yedi-ozet div { display: grid; gap: 5px; padding: 12px; border-radius: 8px; background: rgba(247, 233, 213, .04); }
.kh-yedi-ozet small { font: 600 10.5px/1 var(--f-arayuz); letter-spacing: .1em; text-transform: uppercase; color: var(--krem-3); }
.kh-yedi-ozet b { font: 700 22px/1 var(--f-baslik); }

/* ---------------------------------------------------------------- yetenekler: oyundaki gibi solda dört yuva, sağda seçilenin ayrıntısı
   Sekmeler panelin boyunu doldurur; iki sütun aynı yerde biter. */
.kh-yt { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: stretch; padding: 0; overflow: hidden; }
.kh-yt-liste { display: grid; grid-auto-rows: 1fr; border-right: 1px solid var(--cizgi); background: rgba(0, 0, 0, .18); }
.kh-yt-liste button { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 92px; padding: 14px 18px;
  border: 0; border-bottom: 1px solid var(--cizgi); background: none; color: var(--krem-2); text-align: left; transition: background .15s, color .15s; }
.kh-yt-liste button:last-child { border-bottom: 0; }
.kh-yt-liste button:hover { background: rgba(247, 233, 213, .04); color: var(--krem); }
.kh-yt-liste button[aria-selected="true"] { background: linear-gradient(90deg, color-mix(in srgb, var(--kr) 16%, transparent), rgba(247, 233, 213, .03)); color: var(--krem); }
.kh-yt-liste button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--kr); }
.kh-yt-liste button.nihai[aria-selected="true"]::before { background: var(--altin); }
.kh-yt-ad { display: grid; gap: 4px; min-width: 0; }
.kh-yt-ad small { font: 600 11px/1 var(--f-arayuz); letter-spacing: .1em; text-transform: uppercase; color: var(--krem-3); }
.kh-yt-ad b { font: 700 17px/1.1 var(--f-baslik); text-transform: uppercase; }
.kh-yt-ad em { font: 400 12.5px/1.35 var(--f-metin); font-style: normal; color: var(--krem-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kh-y-ikon { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a2f25, #15120f); box-shadow: inset 0 0 0 2px rgba(247, 233, 213, .14), 0 8px 18px rgba(0, 0, 0, .45); }
.kh-y-ikon.buyuk { width: 76px; height: 76px; }
.nihai .kh-y-ikon { box-shadow: inset 0 0 0 2px var(--altin), 0 0 18px rgba(255, 172, 17, .3); }
.kh-y-ikon img { width: 62%; height: 62%; object-fit: contain; }
.kh-y-ikon i { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: #0c0a08; box-shadow: 0 0 0 1px var(--cizgi-2);
  font: 700 11px/1 var(--f-arayuz); font-style: normal; color: var(--krem-2); }
.kh-yt-panel { min-width: 0; }
.kh-yt-detay { display: grid; gap: 16px; align-content: start; padding: 24px 26px; }
.kh-yt-detay[hidden] { display: none; }
html.hareket .kh-yt-detay:not([hidden]) { animation: hafifBelir .3s ease-out; }
.kh-yt-detay.nihai { background: radial-gradient(70% 50% at 100% 0%, rgba(255, 172, 17, .08), transparent 60%); }
.kh-yt-detay header { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.kh-yt-detay header small { font: 600 11px/1 var(--f-arayuz); letter-spacing: .12em; text-transform: uppercase; color: var(--krem-3); }
.kh-yt-detay h3 { margin-top: 6px; font-size: 26px; }
.kh-y-ana { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.kh-y-ana span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--cizgi); font: 700 13px/1 var(--f-arayuz); white-space: nowrap; }
.kh-y-ana img { width: 14px; height: 14px; }
.kh-aciklama { color: var(--krem-2); font-size: 15px; line-height: 1.6; max-width: 820px; }
.kh-aciklama svg { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.18em; margin-right: 2px; }
.kh-aciklama .inline-attribute-label, .kh-aciklama .highlight, .dk-aciklama .highlight, .dk-aciklama .inline-attribute-label { font-weight: 600; color: var(--krem); }
.kh-aciklama .diminish, .dk-aciklama .diminish { display: block; margin-top: 6px; font-size: 13px; color: var(--krem-3); }
.kh-y-bloklar { display: grid; gap: 8px; padding: 12px 14px; border-radius: 8px; background: rgba(0, 0, 0, .22); }
.kh-y-bloklar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.kh-y-bloklar small { width: 100%; font: 600 11.5px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-y-bloklar span { display: inline-flex; align-items: center; gap: 5px; font: 500 13.5px/1.2 var(--f-arayuz); color: var(--krem-2); }
.kh-y-bloklar span b { color: var(--krem); }
.kh-y-bloklar img { width: 14px; height: 14px; }
.kh-yukselt-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: -6px; }
.kh-yukselt-bas small { font: 500 12px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-yukselt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.kh-yukselt li { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 8px; background: rgba(247, 233, 213, .035); border: 1px solid var(--cizgi); }
.kh-bedel { justify-self: start; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #3b2c5a; color: #d9c6ff; font: 700 12px/1 var(--f-arayuz); }
.kh-yukselt li:nth-child(3) .kh-bedel { background: var(--altin); color: var(--murekkep); }
.kh-yukselt li span { display: block; font: 500 13px/1.35 var(--f-arayuz); color: var(--krem-2); }
.kh-yukselt li span b { color: var(--yesil); }

/* topluluğun yetenek sırası */
.kh-sira { margin-top: 12px; display: grid; gap: 14px; }
.kh-sira-sekme { display: flex; flex-wrap: wrap; gap: 6px; }
.kh-sira-sekme button { display: grid; gap: 3px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--cizgi-2); background: none; color: var(--krem-2); text-align: left; transition: border-color .15s, background .15s; }
.kh-sira-sekme button b { font: 700 14px/1 var(--f-baslik); text-transform: uppercase; }
.kh-sira-sekme button small { font: 500 12px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-sira-sekme button[aria-selected="true"] { border-color: var(--turuncu); background: rgba(221, 102, 56, .1); color: var(--krem); }
.kh-sira-tablo { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.kh-sira-bas, .kh-sira-satir { display: grid; grid-template-columns: 190px repeat(var(--adim), minmax(34px, 1fr)); gap: 4px; align-items: center; min-width: 720px; }
.kh-sira-bas span { display: grid; justify-items: center; gap: 2px; font: 700 12px/1 var(--f-arayuz); color: var(--krem-2); }
.kh-sira-bas small { font: 500 10.5px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-sira-ad { display: flex; align-items: center; gap: 8px; overflow: hidden; font: 600 13px/1.1 var(--f-arayuz); white-space: nowrap; text-overflow: ellipsis; }
.kh-sira-ad img { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: #241d17; flex: none; }
.kh-sira-satir > i { height: 34px; border-radius: 6px; background: rgba(247, 233, 213, .035); display: grid; place-items: center; font: 700 13px/1 var(--f-arayuz); font-style: normal; color: var(--murekkep); }
.kh-sira-satir > i.dolu { background: var(--turuncu); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.kh-sira-satir > i.ac { background: var(--krem); }
.kh-sira-satir > i svg { width: 15px; height: 15px; }
html.hareket .kh-sira-satir > i.dolu { animation: pat .4s cubic-bezier(.2, .8, .2, 1.4) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.kh-ilk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--cizgi); }
.kh-ilk-oge { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--f-arayuz); }
.kh-ilk-oge img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #241d17; }
.kh-ilk-oge em { font-style: normal; color: var(--yesil); }

/* ---------------------------------------------------------------- planlar: soldan seç, sağda oyundaki görünüm */
.kh-plan { display: grid; gap: 10px; }
.kh-plan-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; }
.kh-plan-liste button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; text-align: left;
  border: 1px solid var(--cizgi); background: linear-gradient(180deg, var(--kart-2), var(--kart)); color: var(--krem-2); transition: border-color .15s, background .15s, transform .2s; }
.kh-plan-liste button:hover { border-color: var(--cizgi-2); color: var(--krem); }
.kh-plan-liste button[aria-selected="true"] { border-color: color-mix(in srgb, var(--kr) 70%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--kr) 14%, var(--kart-2)), var(--kart)); color: var(--krem); }
.kh-plan-sira { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(247, 233, 213, .07); font: 700 13px/1 var(--f-baslik); }
.kh-plan-ad { display: grid; gap: 5px; min-width: 0; }
.kh-plan-ad b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.15 var(--f-arayuz); }
.kh-plan-ad small { display: flex; font: 500 12px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-plan-oran { display: grid; gap: 4px; justify-items: end; }
.kh-plan-oran b { font: 700 17px/1 var(--f-baslik); }
.kh-plan-oran small { font: 500 11.5px/1 var(--f-arayuz); color: var(--krem-3); white-space: nowrap; }
/* oyundaki plan paneli: kum rengi kağıt üstünde kategori kutuları */
.kh-plan-govde { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-width: 0; padding: 18px; border-radius: var(--r);
  background: linear-gradient(rgba(54, 45, 33, .9), rgba(40, 33, 24, .94)), url("oyun/dukkan/arka-genel.webp") center / cover; box-shadow: inset 0 0 0 1px rgba(214, 190, 150, .18), 0 20px 50px rgba(0, 0, 0, .4); }
.kh-plan-bas { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.kh-plan-bas h3 { font: 700 19px/1.2 var(--f-arayuz); text-transform: none; }
.kh-plan-bas p { margin: 8px 0 0; max-width: 680px; font-size: 13.5px; line-height: 1.45; color: var(--krem-2); }
.kh-build-yazar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.kh-build-yazar small { font: 600 11px/1 var(--f-arayuz); letter-spacing: .1em; text-transform: uppercase; color: var(--krem-3); }
.rutbe-rozet.gizli { padding: 4px 8px; border-radius: 4px; background: rgba(247, 233, 213, .06); color: var(--krem-3); }
.kh-build-ist { display: flex; gap: 14px; }
.kh-build-ist div { display: grid; gap: 4px; text-align: right; }
.kh-build-ist small { font: 600 10.5px/1 var(--f-arayuz); letter-spacing: .1em; text-transform: uppercase; color: var(--krem-3); }
.kh-build-ist b { font: 700 22px/1 var(--f-baslik); }
.kh-plan-pano { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.kh-plan-kat { --kart-g: 64px; flex: 1 1 calc(var(--w) * (var(--kart-g) + 6px) + 22px); max-width: 100%; display: grid; align-content: start; gap: 8px; padding: 9px 10px 11px;
  border-radius: 4px; background: rgba(20, 16, 11, .5); box-shadow: inset 0 0 0 1px rgba(214, 190, 150, .14); }
.kh-plan-kat.istege { background: rgba(28, 34, 52, .55); box-shadow: inset 0 0 0 1px rgba(120, 150, 220, .25); }
.kh-plan-kat-bas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kh-plan-kat-bas b { font: 700 14px/1.1 var(--f-arayuz); color: #f1e3cc; }
.kh-plan-kat-bas small { flex-basis: 100%; font: 500 12px/1.3 var(--f-arayuz); color: rgba(241, 227, 204, .6); }
.kh-istege { padding: 2px 6px; border-radius: 3px; background: rgba(110, 150, 230, .25); color: #b9cdf7; font: 700 10px/1.3 var(--f-arayuz); letter-spacing: .06em; text-transform: uppercase; }
.kh-plan-kartlar { display: flex; flex-wrap: wrap; gap: 6px; }
.kh-plan-kartlar .oyun-kart { --ok-g: var(--kart-g); }
.kh-plan-alt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(214, 190, 150, .14); }
.kh-plan-alt small { font-size: 12px; color: var(--krem-3); }
.ipucu-plan-not { margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; background: rgba(247, 233, 213, .06); font-size: 12.5px; line-height: 1.4; color: var(--krem-2); }
.ipucu-plan-not b { display: block; margin-bottom: 3px; font: 600 10.5px/1 var(--f-arayuz); letter-spacing: .12em; text-transform: uppercase; color: var(--krem-3); }
.kh-kare { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sr) 40%, #1a1511), color-mix(in srgb, var(--sr) 14%, #120e0b)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sr) 60%, transparent);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s; }
.kh-kare img { width: 64%; height: 64%; object-fit: contain; }
.kh-kare:hover, .kh-kare:focus-visible { transform: translateY(-3px) scale(1.12); box-shadow: inset 0 0 0 2px var(--sr), 0 0 16px color-mix(in srgb, var(--sr) 50%, transparent); z-index: 1; }

/* ---------------------------------------------------------------- hasar kaynakları */
.kh-hasar-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }

/* ---------------------------------------------------------------- meta eşyalar */
.kh-e-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kh-e-lejant { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 600 12.5px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-e-lejant span { display: inline-flex; align-items: center; gap: 6px; }
.kh-e-lejant .baglanti { display: inline-flex; align-items: center; gap: 6px; color: var(--krem-2); }
.kh-e-lejant .baglanti svg { width: 15px; height: 15px; }
.kh-e-pano { display: grid; gap: 8px; }
.kh-e-satir { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 12%, transparent), transparent 40%); border-left: 3px solid var(--tc); }
.kh-e-satir .tpill { width: 42px; height: 42px; font-size: 26px; }
.kh-e-liste { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.kh-e-oge { display: grid; justify-items: center; gap: 4px; }
.kh-e-oge .kh-kare { width: 50px; height: 50px; border-radius: 9px; }
.kh-e-oge small { font: 600 11px/1 var(--f-arayuz); color: var(--krem-3); font-variant-numeric: tabular-nums; }
.kh-zaman { position: absolute; right: -5px; top: -5px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font: 800 10px/1 var(--f-arayuz); font-style: normal; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.kh-e-lejant .kh-zaman { position: static; }
.kh-zaman.erken { background: var(--yesil); color: var(--murekkep); }
.kh-zaman.gec { background: var(--ruh); color: #fff; }
html.hareket .kh-e-pano.gorundu .kh-e-oge { animation: pat .45s cubic-bezier(.2, .8, .2, 1.3) backwards; animation-delay: calc(.05s + var(--i, 0) * 14ms); }
.ipucu-not { font: 500 12px/1.35 var(--f-arayuz); color: var(--krem-3); }
.ipucu-egri { display: block; width: 100%; height: 62px; }
.ipucu-egri line { stroke: rgba(247, 233, 213, .2); stroke-dasharray: 3 4; }
.ipucu-egri path { fill: none; stroke: var(--yesil); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ipucu-egri-alt { display: flex; justify-content: space-between; margin-top: 4px; font: 500 10.5px/1 var(--f-arayuz); color: var(--krem-3); }

/* ---------------------------------------------------------------- karşılaşmalar */
.kh-karsilar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.kh-karsilar > .kart { border-top: 3px solid var(--yr); }
.kh-karsi { display: grid; grid-template-columns: 38px 120px minmax(0, 1fr) 76px; gap: 12px; align-items: center; padding: 6px; border-radius: 8px; transition: background .15s; }
.kh-karsi:hover { background: rgba(247, 233, 213, .05); }
.kh-karsi img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; object-position: 50% 12%; }
.kh-karsi b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.1 var(--f-arayuz); }
.kh-karsi .t-cubuk { grid-template-columns: minmax(0, 1fr) 56px; width: 100%; }
.kh-karsi small { text-align: right; font: 500 12px/1 var(--f-arayuz); color: var(--krem-3); }

/* ---------------------------------------------------------------- hikaye */
.kh-hikaye { position: relative; overflow: hidden; padding: 0; }
.kh-hikaye-zemin { position: absolute; inset: 0; background: right center / cover no-repeat; opacity: .22; mask-image: linear-gradient(90deg, transparent 20%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.kh-hikaye-ic { position: relative; display: grid; gap: 14px; max-width: 760px; padding: 28px; }
.kh-rol { margin: 0; display: grid; gap: 4px; color: var(--krem-2); }
.kh-rol b { font: 600 11px/1 var(--f-arayuz); letter-spacing: .14em; text-transform: uppercase; color: var(--turuncu-2); }
.kh-hikaye-gez { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--cizgi); }
.kh-hikaye-git { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 10px; border: 1px solid var(--cizgi-2); background: rgba(7, 7, 7, .55); color: var(--krem); transition: border-color .15s, background .15s; }
.kh-hikaye-git:hover { border-color: var(--krem-3); background: rgba(247, 233, 213, .06); }
.kh-hikaye-git img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.kh-hikaye-git > span { display: grid; gap: 4px; min-width: 0; flex: 1; }
.kh-hikaye-git small { font: 600 10.5px/1 var(--f-arayuz); letter-spacing: .1em; text-transform: uppercase; color: var(--krem-3); }
.kh-hikaye-git b { font: 700 15px/1.1 var(--f-arayuz); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-hikaye-git > svg { width: 18px; height: 18px; color: var(--krem-3); flex: none; }
.kh-hikaye-git.onceki { flex-direction: row-reverse; text-align: right; padding: 10px 10px 10px 14px; }
.kh-hikaye-git.onceki > span { justify-items: end; }
@media (max-width: 560px) { .kh-hikaye-gez { grid-template-columns: 1fr; } }
.kh-hikaye-metin p { margin: 0 0 12px; color: var(--krem-2); font-size: 16px; line-height: 1.7; }
.kh-hikaye-metin p:first-child::first-letter { float: left; margin: 4px 10px 0 0; font: 700 54px/.8 var(--f-baslik); color: var(--turuncu-2); }

/* ---------------------------------------------------------------- diyaloglar */
.kh-diyalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
.kh-diyalog > *, .kh-d-ust > * { min-width: 0; }
.kh-d-ust .dilim { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.kh-d-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.kh-d-ust .dilim small { margin-left: 4px; color: var(--krem-3); font-weight: 500; }
.kh-d-not { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 13px/1.3 var(--f-arayuz); color: var(--krem-3); }
.kh-d-not svg { width: 16px; height: 16px; color: var(--kr); }
.kh-d-govde[hidden] { display: none; }
.kh-konusmalar { columns: 2; column-gap: 12px; }
.kh-konusmalar > .kh-konusma { break-inside: avoid; margin-bottom: 12px; }
.kh-konusma { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--cizgi); }
.kh-konusma header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kh-konusma, .kh-konusma-satirlar { min-width: 0; }
.kh-konusma header b { flex: 1 1 140px; min-width: 0; font: 700 15px/1.2 var(--f-baslik); text-transform: uppercase; }
.kh-konusma header b span { color: var(--krem-3); font-family: var(--f-arayuz); text-transform: none; font-weight: 500; }
.kh-konusma-yuzler { display: flex; }
.kh-konusma-yuzler img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--kart-3); box-shadow: 0 0 0 2px #0c0a08; }
.kh-konusma-yuzler img + img { margin-left: -10px; }
.kh-konusma-satirlar { display: grid; gap: 6px; }
.kh-d-kim { display: flex; }
.kh-d-kim.o { justify-content: flex-end; }
.kh-d-kim.o .kh-d-satir { flex-direction: row-reverse; text-align: right; }
.kh-d-satir { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; padding: 0; border: 0; background: none; color: var(--krem); text-align: left; font: inherit; }
.kh-d-yuz { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--kart-3); }
.kh-d-balon { position: relative; display: block; padding: 9px 12px 9px 34px; border-radius: 12px; background: rgba(247, 233, 213, .07); font: 400 14px/1.45 var(--f-metin); transition: background .15s, box-shadow .15s; }
.kh-d-kim.o .kh-d-balon { background: color-mix(in srgb, var(--kr) 16%, rgba(247, 233, 213, .05)); }
.kh-d-satir:hover .kh-d-balon { background: rgba(247, 233, 213, .12); }
.kh-d-dil { padding: 3px 7px; border-radius: 4px; background: rgba(247, 233, 213, .07); font: 600 10.5px/1 var(--f-arayuz); letter-spacing: .06em; text-transform: uppercase; color: var(--krem-3); white-space: nowrap; }
/* oynat simgesi: duruyorken üçgen, çalarken dört çubuk dalgalanır */
.kh-d-oynat { position: absolute; left: 11px; top: 12px; width: 14px; height: 14px; display: flex; align-items: flex-end; gap: 2px; }
.kh-d-oynat i { width: 2px; height: 100%; border-radius: 1px; background: var(--kr); opacity: 0; }
.kh-d-oynat::before { content: ""; position: absolute; left: 2px; top: 1px; border-left: 10px solid var(--krem-2); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.kh-d-caliyor .kh-d-balon { box-shadow: 0 0 0 1px var(--kr), 0 0 18px color-mix(in srgb, var(--kr) 30%, transparent); }
.kh-d-caliyor .kh-d-oynat::before { display: none; }
.kh-d-caliyor .kh-d-oynat i { opacity: 1; animation: dalga .8s ease-in-out infinite; }
.kh-d-caliyor .kh-d-oynat i:nth-child(2) { animation-delay: -.2s; } .kh-d-caliyor .kh-d-oynat i:nth-child(3) { animation-delay: -.4s; } .kh-d-caliyor .kh-d-oynat i:nth-child(4) { animation-delay: -.6s; }
@keyframes dalga { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.kh-d-oynat i { transform-origin: bottom; }
[data-konusma].caliyor { color: var(--kr); box-shadow: inset 0 0 0 1px var(--kr); }
.kh-rakipler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.kh-rakip { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .18); }
.kh-rakip-yuz { display: grid; justify-items: center; gap: 4px; text-align: center; }
.kh-rakip-yuz img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; object-position: 50% 12%; background: var(--kart-3); }
.kh-rakip-yuz b { font: 600 12px/1.1 var(--f-arayuz); color: var(--krem-2); }
.kh-rakip .kh-d-satir { max-width: none; }
.kh-patronlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.kh-patron { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--pr) 12%, transparent), rgba(0, 0, 0, .2) 60%); border: 1px solid color-mix(in srgb, var(--pr) 30%, transparent); }
.kh-patron header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.kh-patron header b { display: block; font: 700 18px/1 var(--f-baslik); text-transform: uppercase; color: var(--pr); }
.kh-patron header small { font: 500 12px/1 var(--f-arayuz); color: var(--krem-3); }
.kh-patron-ikon { width: 30px; height: 38px; background: var(--pr); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.kh-patron .kh-d-satir { max-width: none; }
.kh-kendi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.kh-kendi .kh-d-satir { max-width: none; }

@media (max-width: 1100px) {
  .kh-genel, .kh-buildler, .kh-yetenekler, .kh-karsilar { grid-template-columns: 1fr; }
  .kh-hasar-liste { grid-template-columns: 1fr; }
  .kh-yt { grid-template-columns: 260px minmax(0, 1fr); }
  .kh-konusmalar { columns: 1; }
  .kh-rakipler, .kh-kendi { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kh-bas-ic { grid-template-columns: 1fr; gap: 22px; padding: 28px 0 24px; min-height: 0; }
  .kh-sahne { justify-items: start; }
  .kh-kart { width: 170px; }
  .kh-silah { width: 230px; left: 90px; bottom: -14px; }
  .kh-poster { inset: 0 -40% 0 0; opacity: .55; }
  .kh-yt { grid-template-columns: 1fr; }
  .kh-yt-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; border-right: 0; border-bottom: 1px solid var(--cizgi); }
  .kh-yt-liste button { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding: 12px 4px; border-bottom: 0; }
  .kh-yt-liste button[aria-selected="true"]::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; }
  .kh-yt-ad { display: none; }
  .kh-yt-detay { padding: 18px; }
  .kh-yt-detay header { grid-template-columns: 60px minmax(0, 1fr); }
  .kh-yt-detay .kh-y-ikon.buyuk { width: 60px; height: 60px; }
  .kh-patronlar { grid-template-columns: 1fr; }
  .kh-rakip { grid-template-columns: 70px minmax(0, 1fr); }
  .kh-plan-kat { --kart-g: 58px; }
  .kh-plan-bas { grid-template-columns: 1fr; }
  .kh-build-ist div { text-align: left; }
  .kh-ozet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-ozet > div { min-width: 0; }
  .kh-ozet > .kh-kademe { grid-row: span 2; }
  .kh-y-ana { grid-column: 1 / -1; justify-content: flex-start; }
  .kh-yukselt { grid-template-columns: 1fr; }
  .kh-hasar-satir { grid-template-columns: 32px 110px minmax(0, 1fr) 46px; }
  .kh-hasar-satir > small { display: none; }
  .kh-karsi { grid-template-columns: 34px 90px minmax(0, 1fr); }
  .kh-karsi small { display: none; }
}
.kh-sira-sekme button { flex: 1 1 150px; min-width: 0; }
.kh-sira, .kh-genel > *, .kh-karsilar > *, .kh-plan > * { min-width: 0; }
.kh-sira { margin-top: 12px; }
.kh-sira > *, #kh-sira-izgara { min-width: 0; }
#kh-sira-izgara { overflow-x: auto; }
/* Sayfa içi kahraman geçişi: veri gelene dek eski içerik soluklaşır */
#sayfa.kh-geciyor .kh-bas-ic, #sayfa.kh-geciyor #kh-govde { opacity: .45; pointer-events: none; transition: opacity .2s; }
#sayfa.kh-geciyor::before { content: ""; position: fixed; top: 68px; left: 0; height: 3px; width: 40%; z-index: 60; background: var(--ana); animation: khGecis 1s ease-in-out infinite; }
@keyframes khGecis { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
/* Yapışkan menüdeki ad: kahraman seçici */
#kh-alt .alt-menu-ic { position: relative; }
#kh-alt .alt-menu-kim svg { width: 15px; height: 15px; flex: none; color: var(--krem-3); transition: color .15s; }
#kh-alt .alt-menu-kim:hover svg { color: var(--krem); }
.kh-alt-secici { position: absolute; left: 0; top: 100%; width: 0; height: 0; }
.kh-alt-secici .k-secici-dug { display: none; }
.kh-alt-secici .k-secici-pop { top: 6px; max-height: min(70vh, 520px); overflow: auto; }
