/* —— Dünya Bossu —— */
.wb {
  --navy: #071426;
  --cream: #f7f1e4;
  --gold: #f6c445;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #050d18;
  color: var(--cream);
  font-family: var(--font);
  user-select: none;
}
.wb button { -webkit-tap-highlight-color: transparent; }
.wb svg { display: block; flex-shrink: 0; }

.wb-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  background: linear-gradient(180deg, #0c1830, #081222);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wb-top h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 900;
  color: #fff;
}
.wb-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #dce6f5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wb-icon-btn svg { width: 22px; height: 22px; }
.wb-icon-btn:active { transform: scale(0.95); }

.wb-strip {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.7);
  background: rgba(8, 18, 36, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wb-strip b { color: #fff; font-weight: 900; }

.wb-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
}

.wb-card {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(136px, 32vw, 168px);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  background: #102038;
}
.wb-card.is-rec { border-color: rgba(246, 196, 69, 0.5); }
.wb-card.is-locked .wb-card-bg {
  filter: saturate(0.9) brightness(0.82) contrast(1.04);
}
.wb-card.tone-fire { border-color: rgba(255, 120, 70, 0.28); }
.wb-card.tone-ice { border-color: rgba(100, 190, 255, 0.28); }
.wb-card.tone-nature { border-color: rgba(100, 210, 120, 0.28); }
.wb-card.tone-dark { border-color: rgba(170, 100, 230, 0.28); }
.wb-card.is-rec.tone-fire,
.wb-card.is-rec.tone-ice,
.wb-card.is-rec.tone-nature,
.wb-card.is-rec.tone-dark { border-color: rgba(246, 196, 69, 0.55); }

.wb-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  /* Sahne biraz koyu → yaratık silik kalmaz */
  filter: saturate(0.88) brightness(0.7) contrast(1.05);
}
/* Sol portre — çerçeve yok, taşma yok */
.wb-card-stage {
  position: absolute;
  left: 2px;
  top: 4px;
  bottom: 4px;
  width: clamp(120px, 36%, 150px);
  z-index: 3;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}
.wb-card-stage-glow {
  display: none;
}
.wb-card-boss {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  /* Asset zaten canlı — hafif gölge yeter */
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.9))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65));
}
/* Alev ejderi lava bg’de silik kalmasın */
.wb-card.tone-fire .wb-card-boss {
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 1))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7))
    brightness(1.1)
    contrast(1.12)
    saturate(1.12);
}
/* Kadim ağaç orman bg’de silik kalmasın */
.wb-card.tone-nature .wb-card-boss {
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 1))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7))
    brightness(1.12)
    contrast(1.14)
    saturate(1.15);
}
/* Buz minotoru — koyu gövde mavi zeminde silik kalmasın */
.wb-card.tone-ice .wb-card-boss {
  filter:
    drop-shadow(0 0 1px rgba(150, 215, 255, 0.9))
    drop-shadow(0 0 7px rgba(110, 200, 255, 0.35))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65))
    brightness(1.25) contrast(1.08);
}
/* Gölge ejderhası / karanlık — mor kenar ışığı */
.wb-card.tone-dark .wb-card-boss {
  filter:
    drop-shadow(0 0 1px rgba(200, 150, 255, 0.85))
    drop-shadow(0 0 7px rgba(150, 90, 255, 0.4))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65))
    brightness(1.2) contrast(1.06);
}
.wb-card-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Sol açık kalsın (yaratık üstte), sağ metin okunur */
  background:
    linear-gradient(90deg, transparent 0%, transparent 36%, rgba(4, 12, 24, 0.5) 56%, rgba(4, 12, 24, 0.84) 100%),
    linear-gradient(180deg, rgba(4, 12, 24, 0.05) 0%, transparent 48%, rgba(4, 12, 24, 0.18) 100%);
}

.wb-card-fg {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: inherit;
  min-width: 0;
  padding: 12px 10px 12px calc(14px + clamp(120px, 36%, 150px));
  box-sizing: border-box;
  overflow: hidden;
}

/* Dünya boss — sadece kart HUD + arka plan */
.dzb.is-world-boss .dzb-bg-img {
  object-position: center center;
}

/* Zindan savaş alanı (animasyonlu boss sprite) — boss büyük, 'Sahne' düğmesi Katılanlar'ın altında */
.dzb.is-world-boss .bf-switch { top: calc(60px + env(safe-area-inset-top, 0px)); right: 10px; }
.dzb.is-world-boss .bf-fig.is-foe.is-boss { width: 66%; height: 86%; max-height: 300px; right: -1%; }
.dzb.is-world-boss[data-boss="necromancer"] .bf-fig.is-foe.is-boss { width: 56%; right: 0; height: 74%; }
.dzb.is-world-boss[data-boss="magma-golem"] .bf-fig.is-foe.is-boss { width: 62%; right: 0; }
.dzb.is-world-boss .bf-fig.is-foe.is-boss .bf-shadow { left: 14%; right: 8%; height: 7%; opacity: 0.9; }
/* Siyah / koyu bosslar sahnede silik kalmasın: hafif kenar ışığı */
.dzb.is-world-boss[data-boss="necromancer"] .bf-fspr { filter: drop-shadow(0 0 6px rgba(150, 90, 255, 0.55)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.dzb.is-world-boss[data-boss="frost-minotaur"] .bf-fspr { filter: drop-shadow(0 0 6px rgba(110, 200, 255, 0.5)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.dzb.is-world-boss[data-boss="magma-golem"] .bf-fspr { filter: drop-shadow(0 0 7px rgba(255, 130, 40, 0.5)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.dzb.is-world-boss[data-boss="forest-troll"] .bf-fspr { filter: drop-shadow(0 0 5px rgba(120, 230, 80, 0.4)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }

/* Üst bar — 3 kolon: boş | rozet | Katılanlar; isim alt satırda */
.dzb.is-world-boss .dzb-top.is-boss-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 10px 14px;
  overflow: visible;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.78) 0%, rgba(4, 10, 20, 0.35) 72%, transparent 100%);
}
.dzb.is-world-boss .boss-head-bar {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 36px;
  gap: 6px;
  pointer-events: none;
}
.dzb.is-world-boss .boss-head-bar .dzb-top-badge {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  pointer-events: none;
}
.dzb.is-world-boss .boss-head-bar .wb-raid {
  grid-column: 3;
  justify-self: end;
  pointer-events: auto;
}
.dzb.is-world-boss .boss-head-name {
  display: block;
  width: 100%;
  margin: 0;
  padding: 2px 8px 6px;
  font-size: clamp(20px, 5.8vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 3px 12px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 140, 70, 0.28);
}

/* Katılanlar — sağ hücrede, rozete değmez */
.wb-raid {
  position: relative;
  z-index: 12;
  width: max-content;
  max-width: 100%;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
  pointer-events: auto;
}
.wb-raid-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  margin: 0;
  line-height: 1;
  color: #fff;
  background: linear-gradient(165deg, rgba(18, 36, 58, 0.98), rgba(8, 16, 30, 0.96));
  border: 1px solid rgba(246, 196, 69, 0.32);
  border-radius: 999px;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  box-sizing: border-box;
  font: inherit;
}
.wb-raid.is-open .wb-raid-toggle {
  border-radius: 12px 12px 0 0;
}
.wb-raid-toggle-title {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}
.wb-raid-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: #e4544a;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(8, 16, 30, 0.85);
}
.wb-raid-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  color: #ffe56a;
}
.wb-raid-body {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: auto;
  width: min(82vw, 280px);
  flex-direction: column;
  gap: 7px;
  padding: 0 9px 9px;
  border: 1px solid rgba(246, 196, 69, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 0 12px 12px;
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.98), rgba(8, 14, 26, 0.96));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  max-height: min(48vh, 320px);
  z-index: 13;
}
.wb-raid.is-open .wb-raid-body { display: flex; }
.wb-raid-list {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
  max-height: min(36vh, 240px);
}
.wb-raid-row {
  display: grid;
  grid-template-columns: 26px 32px 1fr;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.wb-raid-row.is-self {
  background: rgba(246, 196, 69, 0.16);
  box-shadow: inset 0 0 0 1px rgba(246, 196, 69, 0.35);
}
.wb-raid-row.is-top {
  grid-template-columns: 36px 36px 1fr;
  min-height: 52px;
  padding: 7px 8px;
  border-radius: 12px;
}
.wb-raid-row.is-top-1 {
  background: linear-gradient(90deg, #5a4208 0%, #3a2a08 55%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 0 0 1.5px #ffd24a;
}
.wb-raid-row.is-top-2 {
  background: linear-gradient(90deg, #3a4654 0%, #242c38 55%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 0 0 1.5px #c5d4e4;
}
.wb-raid-row.is-top-3 {
  background: linear-gradient(90deg, #5a3010 0%, #3a1e0a 55%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 0 0 1.5px #e08a3c;
}
.wb-raid-row.is-self.is-top-1 {
  box-shadow: inset 0 0 0 1.5px #ffe56a, 0 0 10px rgba(255, 210, 74, 0.35);
}
.wb-raid-rank {
  position: relative;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.wb-raid-row.is-self .wb-raid-rank { color: #ffe56a; }
.wb-raid-rank.is-medal {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  z-index: 1;
}
.wb-raid-row.is-top-1 .wb-raid-rank.is-medal {
  color: #5a3a00;
  background: radial-gradient(circle at 32% 28%, #fff6c8 0%, #ffd24a 42%, #c98a08 100%);
  box-shadow:
    0 0 0 2px #8a5a00,
    0 0 0 3px #ffe56a,
    0 3px 0 #6a4400,
    0 0 12px rgba(255, 210, 74, 0.7);
}
.wb-raid-row.is-top-2 .wb-raid-rank.is-medal {
  color: #2e3a48;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d5e0ec 45%, #7e93a8 100%);
  box-shadow:
    0 0 0 2px #56667a,
    0 0 0 3px #e8eef4,
    0 3px 0 #3a4858;
}
.wb-raid-row.is-top-3 .wb-raid-rank.is-medal {
  color: #4a2208;
  background: radial-gradient(circle at 32% 28%, #ffd8b0 0%, #e08a3c 48%, #8a4814 100%);
  box-shadow:
    0 0 0 2px #6a3408,
    0 0 0 3px #ffb074,
    0 3px 0 #4a2808;
}
.wb-raid-row.is-top .wb-raid-av {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border-width: 2px;
}
.wb-raid-row.is-top-1 .wb-raid-av { border-color: #ffd24a; }
.wb-raid-row.is-top-2 .wb-raid-av { border-color: #c5d4e4; }
.wb-raid-row.is-top-3 .wb-raid-av { border-color: #e08a3c; }
.wb-raid-row.is-top .wb-raid-meta strong {
  font-size: 13px;
  color: #fff;
}
.wb-raid-row.is-top-1 .wb-raid-meta b { color: #ffe56a; }
.wb-raid-row.is-top-2 .wb-raid-meta b { color: #e8eef4; }
.wb-raid-row.is-top-3 .wb-raid-meta b { color: #ffb074; }
.wb-raid-av {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0a1220;
}
.wb-raid-av-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.wb-raid-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.wb-raid-meta strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-raid-meta strong > i {
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  color: #ffe56a;
  margin-left: 3px;
}
.wb-raid-meta b {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  color: #ff8a80;
  font-variant-numeric: tabular-nums;
}
.wb-raid-empty {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 4px;
}

.wb-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  overflow: hidden;
}
.wb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.wb-head strong {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-head em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.wb-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wb-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e4544a, #ff8a5c);
}
.wb-card.tone-ice .wb-bar i {
  background: linear-gradient(90deg, #2f7fd4, #6ec8ff);
}
.wb-card.tone-nature .wb-bar i {
  background: linear-gradient(90deg, #2f9e4a, #7dff9a);
}
.wb-card.tone-dark .wb-bar i {
  background: linear-gradient(90deg, #6a2d9a, #c070ff);
}

.wb-hp {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.wb-chest {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  margin: 2px 0 0;
  padding: 0 10px 0 6px;
  border-radius: 10px;
  background: rgba(4, 10, 22, 0.9);
  border: 1.5px solid rgba(120, 190, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 12px rgba(80, 160, 255, 0.2);
  cursor: pointer;
  overflow: hidden;
}
.wb-chest:active { transform: scale(0.985); }
.wb-chest-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}
.wb-chest-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffe56a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.wb-chest-n {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 28px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: #0a1628;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.wb-loot-pop { position: relative; text-align: center; padding-top: 2px; }
.wb-loot-pop-x {
  position: absolute;
  top: -2px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wb-loot-pop-x:active { transform: scale(0.94); }
.wb-loot-pop-hero {
  width: 72px;
  height: 72px;
  margin: 4px auto 8px;
  display: grid;
  place-items: center;
}
.wb-loot-pop-chest {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.wb-loot-pop h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.wb-parch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.wb-parch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(8, 16, 32, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  overflow: hidden;
}
.wb-parch-card.rarity-rare {
  border-color: rgba(176, 120, 255, 0.7);
  box-shadow: 0 0 18px rgba(150, 90, 255, 0.28), inset 0 0 20px rgba(120, 80, 200, 0.12);
}
.wb-parch-card.rarity-legendary {
  border-color: rgba(255, 170, 50, 0.8);
  box-shadow: 0 0 22px rgba(255, 160, 40, 0.4), inset 0 0 24px rgba(255, 140, 30, 0.14);
}
.wb-parch-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #0a1628;
  background: linear-gradient(180deg, #e8d4ff, #b07cff);
}
.wb-parch-card.rarity-legendary .wb-parch-tag {
  background: linear-gradient(180deg, #ffe56a, #f0a000);
}
.wb-parch-ico {
  width: 56px;
  height: 56px;
  margin-top: 6px;
  display: grid;
  place-items: center;
}
.wb-parch-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.wb-parch-card strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.wb-parch-card em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(247, 241, 228, 0.78);
}
.wb-parch-card b {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: #ffe56a;
}
.wb-loot-ranks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 180, 60, 0.1);
  border: 1px solid rgba(255, 200, 100, 0.28);
  text-align: left;
}
.wb-loot-ranks span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.88);
  line-height: 1.25;
}
.wb-loot-ranks b { color: #ffe56a; margin-right: 4px; }
.dzb-chip.is-legend {
  border-color: rgba(255, 170, 50, 0.55);
  box-shadow: 0 0 10px rgba(255, 160, 40, 0.25);
}
.wb-loot-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-height: min(48vh, 360px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.wb-loot-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10, 20, 38, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.wb-loot-row.rarity-common { border-color: rgba(126, 176, 255, 0.45); }
.wb-loot-row.rarity-uncommon { border-color: rgba(78, 184, 255, 0.5); }
.wb-loot-row.rarity-rare { border-color: rgba(192, 140, 255, 0.55); }
.wb-loot-row.rarity-legendary { border-color: rgba(255, 154, 46, 0.6); }
.wb-loot-row-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}
.wb-loot-row-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wb-loot-row-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wb-loot-row-meta strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-loot-row-meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wb-loot-row-qty {
  font-size: 15px;
  font-weight: 900;
  color: #ffe56a;
  white-space: nowrap;
}

.wb-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
.wb-time svg { width: 13px; height: 13px; opacity: 0.9; }

.wb-btn {
  flex: 0 0 auto;
  min-width: 108px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #3a6db8, #1e4a8c);
  border: 1px solid rgba(140, 190, 255, 0.35);
  box-shadow: 0 3px 0 #143060;
}
.wb-btn.is-hot {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  border-color: rgba(255, 220, 120, 0.55);
  box-shadow: 0 3px 0 #c47d08;
}
.wb-btn.is-lock,
.wb-btn.is-off {
  color: rgba(247, 241, 228, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.wb-btn:active:not(.is-lock):not(.is-off) { transform: translateY(1px); }

@media (max-width: 360px) {
  .wb-card-fg { padding-left: calc(14px + clamp(120px, 36%, 150px)); }
  .wb-btn { min-width: 96px; font-size: 11px; }
}

/* Sonuç kartı */
.wb-end {
  gap: 12px;
  padding-top: 32px;
}
.wb-end-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.wb-end-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wb-end-stats span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.5);
}
.wb-end-stats b {
  font-size: 18px;
  font-weight: 900;
  color: #ffe56a;
}
.wb-end-stats b.is-top { color: #9fe870; }
.wb-end-hp {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wb-end-hp > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.5);
}
.wb-end-hp > i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.wb-end-hp > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e04535, #ffb23e);
}
.wb-end-hp > em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.75);
  text-align: center;
}
.wb-end-rew .rw {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.wb-end-rew .rw-bit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wb-end-rew .rw-ico,
.wb-end-rew img.rw-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: transparent !important;
}
.wb-end-rew b {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}
.wb-end .wb-end-ok,
.wb-end [data-battle-ok] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 3px 0 #c47d08;
  cursor: pointer;
}
.wb-end [data-battle-ok]:active { transform: translateY(1px); }

/* ═══════ Dünya boss kartları — uyumlu sahne: element ışığı + zemin gölgesi + eşit görsel ağırlık ═══════ */
.wb-card { --glow: rgba(255, 190, 80, 0.5); --elem-line: rgba(255, 210, 120, 0.8); }
.wb-card.tone-nature { --glow: rgba(110, 230, 90, 0.5); --elem-line: rgba(140, 240, 120, 0.85); }
.wb-card.tone-ice { --glow: rgba(100, 195, 255, 0.5); --elem-line: rgba(140, 215, 255, 0.85); }
.wb-card.tone-fire { --glow: rgba(255, 130, 50, 0.55); --elem-line: rgba(255, 170, 90, 0.85); }
.wb-card.tone-dark { --glow: rgba(170, 100, 255, 0.5); --elem-line: rgba(200, 150, 255, 0.85); }
.wb-card { box-shadow: inset 3px 0 0 var(--elem-line), 0 8px 18px rgba(0, 0, 0, 0.45); }

.wb-card-stage { left: 0; top: 0; bottom: 0; width: var(--sw, 142px); overflow: hidden; }
.wb-card[data-boss="forest-troll"] { --sw: 166px; --bp: 20px; }
.wb-card[data-boss="frost-minotaur"] { --sw: 146px; --bp: 16px; }
.wb-card[data-boss="magma-golem"] { --sw: 146px; --bp: 16px; }
.wb-card[data-boss="necromancer"] { --sw: 156px; --bp: 18px; }

.wb-card-stage-glow {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 86%;
  z-index: 0;
  background: radial-gradient(ellipse 66% 60% at 50% 80%, var(--glow), transparent 74%);
  opacity: 0.85;
}
.wb-card-ground {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 70%;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 70%);
  z-index: 0;
}
.wb-card-boss { padding: 6px 4px var(--bp, 16px); position: relative; z-index: 1; }

.wb-elem {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 2;
  padding: 3px 8px 3px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: rgba(6, 12, 24, 0.7);
  border: 1px solid var(--elem-line);
  box-shadow: 0 0 8px var(--glow);
}

