/* v12.8 bft128: Savaş Alanı boss saati paneli */
#bt128 { position: fixed; left: 10px; top: 210px; z-index: 30; width: 236px; background: rgba(14, 10, 22, 0.82); border: 1px solid rgba(255, 200, 90, 0.45); border-radius: 8px; color: #f3e9d2; font: 12px/1.35 system-ui, sans-serif; pointer-events: auto; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
#bt128[hidden] { display: none; }
#bt128 .bt-h { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; cursor: pointer; color: #ffd27a; font-weight: 700; user-select: none; }
#bt128 .bt-x { transition: transform .15s; }
#bt128.kapali .bt-x { transform: rotate(-90deg); }
#bt128.kapali .bt-l { display: none; }
#bt128 .bt-l { padding: 0 6px 6px; }
#bt128 .bt-r { display: flex; justify-content: space-between; gap: 6px; padding: 3px 4px; border-top: 1px solid rgba(255,255,255,.07); }
#bt128 .bt-n small, #bt128 .bt-v small { color: #a99c86; }
#bt128 .bt-v { white-space: nowrap; color: #cfe6ff; position: relative; }
#bt128 .bt-r.up .bt-n { color: #ff9a6a; }
#bt128 .bt-r.up .bt-v { color: #ff6a4a; font-weight: 700; padding-bottom: 3px; }
#bt128 .bt-r.up .bt-v i { position: absolute; left: 0; bottom: 0; height: 2px; background: #ff6a4a; border-radius: 1px; }
/* v12.8d: telefon: soldaki kum saati ikonu, dokununca yanında açılan pencere */
#bt128.mob128 { position: fixed; width: 210px; font-size: 11px; z-index: 60; }
#bt128.mob128 .bt-h { padding: 4px 7px; }
#bt128.mob128 .bt-x { transform: rotate(90deg); }
#bt128Btn { position: relative; }
#bt128Btn[hidden] { display: none !important; }
#bt128Btn .bt-bd { position: absolute; right: 0; bottom: 0; min-width: 16px; padding: 0 3px; border-radius: 8px; background: #2a1d3a; border: 1px solid #ffd27a; color: #ffd27a; font: 700 9px/14px system-ui, sans-serif; text-align: center; pointer-events: none; }
#bt128Btn .bt-bd:empty { display: none; }
#bt128Btn .bt-bd.up { background: #c0392b; border-color: #ffb0a0; color: #fff; }
/* v12.8d: telefonda sol sütundaki bildirim noktası düğmenin içinde kalsın (taşmasın) */
body.m2 .hud-top #hub102Btn .dot, body.ls106 .hud-top #hub102Btn .dot, body.pt106 .hud-top #hub102Btn .dot { top: 1px; right: 1px; width: 8px; height: 8px; }
#bt128 .bt-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #bt128 .bt-v { flex: none; white-space: nowrap; }
/* v12.8e cur128: telefonda sağ üst para ikonları sıkışıp 0 genişliğe iniyordu (flex küçülmesi) */
body.cur128 .hud-right .gold > i { flex: none; }
/* v12.8e ad128: karakter kartında oyuncu adı tam görünsün (14 harfe kadar), Güç Puanı sağda */
/* v12.8f: kart eski sade ölçüsüne yakın kaldı; Güç Puanı ad satırından alt satıra (XP çizgisinin sağına) indi, ad satırı yalnız ada kaldı */
body.ad128.h2 .h2-main { width: 206px; }
body.ad128.h2.m2 .h2-main { width: 172px; }
body.ad128 .h2-nm { flex: none; overflow: visible; text-overflow: clip; }
body.ad128 .h2-ft128 { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
body.ad128 .h2-ft128 .h2-xp { flex: 1; margin: 0; }
body.ad128 .h2-ft128 .h2-gp { flex: none; margin: 0; padding: 0 6px; font-size: 10px; line-height: 13px; }
body.ad128.m2 .h2-ft128 { margin-top: 2px; } body.ad128.m2 .h2-ft128 .h2-gp { font-size: 9px; line-height: 12px; padding: 0 5px; }
body.ad128.m2:not(.hdf128) #bossBar, body.ad128.mob112L:not(.hdf128) #bossBar { width: min(240px, 30vw) !important; }

/* v12.8f yer128: telefonda sol ikon sütunu ile karakter kartı / tur şeridi / hasar listesi / görevler arasında boşluk (değmesin) */
body.yer128.mob112L .hud-left, body.yer128.mob112L #mStack { left: calc(var(--gl) + 44px); }
/* örs ikonu çizimi alta yaslı: kutunun ortasına al */
body.yer128 .hud-top #enhBtn img.uiico { transform: translateY(-2px); }
/* v12.8f kart128: karakter kartı yeniden tasarım (koyu cam panel, ince altın çerçeve, sade çubuklar, altın halkalı portre) */
body.kart128.h2 .h2-main { background: linear-gradient(180deg, rgba(38,30,54,.94), rgba(20,15,30,.94)); border: 1px solid rgba(255,214,140,.38); border-left: 0; border-radius: 0 14px 14px 0; box-shadow: 0 6px 18px #0007, inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: none; }
body.kart128.h2 .h2-ava { border: 0; background: radial-gradient(circle at 50% 38%, #3b2e52, #1a1426); box-shadow: 0 0 0 2px #1a1426, 0 0 0 4px #d9a441, 0 0 0 5px #6b4a14, 0 6px 14px #0008; }
body.kart128.h2.m2 .h2-ava { box-shadow: 0 0 0 2px #1a1426, 0 0 0 3.5px #d9a441, 0 0 0 4.5px #6b4a14, 0 4px 10px #0008; }
body.kart128.h2 .h2-lv { background: linear-gradient(#ffe7a0, #e0a238); border: 1.5px solid #5a3c0c; color: #2a1a04; box-shadow: 0 2px 4px #0007; }
body.kart128 .h2-name { text-shadow: 0 1px 0 #000, 0 0 6px #0008; letter-spacing: .2px; }
body.kart128 .h2-bar { background: #0c0912; border: 1px solid #000; box-shadow: inset 0 1px 2px #000c, 0 1px 0 rgba(255,255,255,.07); border-radius: 6px; margin-bottom: 3px; }
body.kart128 .h2-bar i { border-radius: 5px; }
body.kart128 .h2-bar i::after { left: 2px; right: 2px; top: 1px; height: 35%; border-radius: 4px; background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,0)); }
body.kart128 .h2-bar.hp i { background: linear-gradient(#ff7a8c, #d6203f 60%, #a3132c); }
body.kart128 .h2-bar.mp i { background: linear-gradient(#7fc4ff, #2f6fe0 60%, #1d4fb0); }
body.kart128 .h2-bar span { font-weight: 800; letter-spacing: .3px; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
body.kart128 .h2-xp { height: 4px; background: #0c0912; box-shadow: inset 0 1px 1px #000c; }
body.kart128 .h2-xp i { background: linear-gradient(90deg, #8f5cf0, #d7a6ff); }
body.kart128 .h2-gp { background: rgba(0,0,0,.45); border: 1px solid rgba(255,214,140,.35); color: #ffd98a; border-radius: 8px; }

/* v12.8g hedef128: telefon yatayda para satırı yok (envanterde görülür); boss ve hedef can barı üst şeritte, kartla aynı dilde */
body.hdf128 .hud-right .gold > .coin, body.hdf128 .hud-right #hudGold { display: none !important; } /* v12.8i: yalnız altın gizli; ÜP, Ash Coin, nişan kalır */
:is(body.hdf128, body.pc128) #bossBar { box-sizing: border-box; padding: 3px 9px 5px; text-align: left; background: linear-gradient(180deg, rgba(38,30,54,.94), rgba(20,15,30,.94)); border: 1px solid rgba(255,214,140,.38); border-radius: 12px; box-shadow: 0 6px 16px #0007, inset 0 1px 0 rgba(255,255,255,.08); z-index: 5; }
:is(body.hdf128, body.pc128) #bossBar .boss-name { font: 800 11px/14px "Cinzel", Georgia, serif !important; color: #ffd98a; letter-spacing: .6px; margin: 0 0 2px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
:is(body.hdf128, body.pc128) #bossBar .bar.boss { height: 13px !important; margin: 0 !important; background: #0c0912; border: 1px solid #000; border-radius: 6px; box-shadow: inset 0 1px 2px #000c, 0 1px 0 rgba(255,255,255,.07); overflow: hidden; }
:is(body.hdf128, body.pc128) #bossBar .bar.boss > div { border-radius: 5px; background: linear-gradient(#ff7a5c, #d6342a 60%, #9e1c18); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
:is(body.hdf128, body.pc128) #bossBar .bar.boss span { font: 800 9px/12px "Trebuchet MS", sans-serif !important; letter-spacing: .3px; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
:is(body.hdf128, body.pc128) #tgtFrame { box-sizing: border-box; z-index: 5; }
:is(body.hdf128, body.pc128) #tgtFrame .tg-bar { height: 20px; border-radius: 10px; background: linear-gradient(180deg, rgba(38,30,54,.96), rgba(20,15,30,.96)); border: 1px solid rgba(255,214,140,.38); box-shadow: inset 0 1px 2px #000a, 0 4px 12px #0007; }
:is(body.hdf128, body.pc128) #tgtFrame .tg-f { border-radius: 9px; }
:is(body.hdf128, body.pc128) #tgtFrame .tg-l, :is(body.hdf128, body.pc128) #tgtFrame .tg-hp, :is(body.hdf128, body.pc128) #tgtFrame .tg-x { line-height: 20px; height: 20px; }
:is(body.hdf128, body.pc128) #tgtFrame .tg-f { background: linear-gradient(#ff7a5c, #d6342a 60%, #9e1c18); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
:is(body.hdf128, body.pc128) #tgtFrame .tg-f.ally { background: linear-gradient(#8dffb0, #2f9a5a 60%, #1f6e3e); }
:is(body.hdf128, body.pc128) #tgtFrame .tg-n { font-weight: 800; }

/* v12.8h: küçük yaratık hedefi: boss barının 1/3'ü, ad + yüzde */
#tgtFrame .tg-pc128 { display: none; }
:is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-bar { height: 16px; border-radius: 8px; }
:is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-f { border-radius: 7px; }
:is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-hp, :is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-s, :is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-x { display: none; }
:is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-l { left: 7px; max-width: calc(100% - 44px); line-height: 16px; height: 16px; }
:is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-n { font-size: 10px; }
:is(body.hdf128, body.pc128) #tgtFrame.tg128s .tg-pc128 { display: block; position: absolute; right: 7px; top: 0; line-height: 16px; font: 800 10px/16px "Trebuchet MS", sans-serif; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }

/* v12.8h pc128: PC'de üst ortadaki pencereler: görev açılır penceresi sağdaki Görev Takibi'nin altına, boss/hedef barı kartla aynı tasarım */
body.pc128 #bossBar { width: 460px !important; }
body.pc128 #bossBar .boss-name { font-size: 12px !important; }
body.pc128 #bossBar .bar.boss { height: 15px !important; } body.pc128 #bossBar .bar.boss span { font-size: 10px !important; line-height: 14px !important; }
body.pc128 #tgtFrame.tg128s { width: 160px !important; }
body.pc128 #q94 { left: auto; right: calc(10px + env(safe-area-inset-right)); transform: none; width: 300px; }

/* v12.8j: telefonda Yeni görev / Görev tamamlandı = boss barı boyunda tek satır, üst şeritte boss/hedef barının altında */
body.hdf128 #q94.q128s { transform: none; box-sizing: border-box; display: flex; align-items: center; gap: 7px; padding: 4px 5px 4px 10px; border: 1px solid rgba(255,214,140,.55); border-radius: 12px; background: linear-gradient(180deg, rgba(38,30,54,.96), rgba(20,15,30,.96)); box-shadow: 0 6px 16px #0007, inset 0 1px 0 rgba(255,255,255,.08); font-size: 11px; overflow: hidden; }
body.hdf128 #q94.q128s[hidden] { display: none; }
body.hdf128 #q94.q128s .q94h { flex: none; font-size: 10px; white-space: nowrap; }
body.hdf128 #q94.q128s .q94n { flex: 1; min-width: 0; margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hdf128 #q94.q128s { flex-wrap: wrap; row-gap: 2px; padding-bottom: 6px; }
body.hdf128 #q94.q128s .q94r { display: none; } /* ödül: Görevler listesindeki ⓘ ile */
body.hdf128 #q94.q128s .q94d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; order: 5; flex: 0 0 100%; margin: 0; font-size: 10px; line-height: 13px; color: #d8d0e8; }
body.hdf128 #q94.q128s .q94b { flex: none; margin: 0; gap: 4px; }
body.hdf128 #q94.q128s .q94b button { padding: 2px 9px; font-size: 11px; line-height: 18px; min-height: 0; }
/* v15.3 bar153: PC karakter kartı can/mana çubukları üstten-alttan kalın, rakamlar boğulmasın (telefonda sınıf eklenmez) */
body.bar153.h2 .h2-bar.hp { height: 18px; }
body.bar153.h2 .h2-bar.hp span { font-size: 12px; line-height: 16px; }
body.bar153.h2 .h2-bar.mp { height: 16px; }
body.bar153.h2 .h2-bar.mp span { font-size: 11px; line-height: 14px; }
body.bar153.h2 .h2-bar { margin-bottom: 4px; }
