/* Zindan — sonsuz farm */
.dz {
  --navy: #071426;
  --panel: #0a1628;
  --gold: #f6c445;
  --cream: #f7f1e4;
  --enter: #3ddc6e;
  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;
}
.dz button { -webkit-tap-highlight-color: transparent; }
.dz svg { display: block; flex-shrink: 0; }

.dz-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);
  z-index: 3;
}
.dz-top h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}
.dz-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);
}
.dz-icon-btn svg { width: 22px; height: 22px; }
.dz-icon-btn:active { transform: scale(0.95); }

.dz-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px));
}

.dz-energy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0e1c30;
  border: 1px solid rgba(110, 180, 255, 0.28);
}
.dz-energy-ico {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7eb8ff;
  background: rgba(90, 150, 255, 0.15);
}
.dz-energy-ico svg { width: 16px; height: 16px; }
.dz-energy-track {
  grid-column: 2;
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.dz-energy-track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5aa8ff, #9ad0ff);
}
.dz-energy strong {
  grid-column: 3;
  grid-row: 1 / 3;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dz-energy em {
  grid-column: 2;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.5);
}

.dz-hero-card {
  position: relative;
  flex: 0 0 auto;
  height: 140px;
  min-height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(246, 196, 69, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  background: #102038;
}
/* global img{height:auto} kartı ezmesin */
.dz .dz-hero-bg,
.dz .dz-zrow-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}
.dz-hero-bg {
  filter: saturate(1.1) brightness(1.02);
}
.dz-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 12, 24, 0.72) 0%, rgba(4, 12, 24, 0.28) 55%, rgba(4, 12, 24, 0.15) 100%),
    linear-gradient(180deg, transparent 25%, rgba(4, 12, 24, 0.7) 100%);
  pointer-events: none;
}
.dz-hero-fg {
  position: relative;
  z-index: 2;
  height: 140px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 14px 16px;
  min-width: 0;
  box-sizing: border-box;
}
.dz-hero-zone {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(154, 208, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}
.dz-hero-fg > strong {
  display: block;
  font-size: clamp(24px, 6.2vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.dz-hero-meta {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.dz-hero-meta b { color: var(--gold); }

/* Önerilen güç — kompakt */
.dz-power {
  padding: 10px 12px;
  border-radius: 14px;
  background: #0e1c30;
  border: 1px solid rgba(154, 208, 255, 0.22);
}
.dz-power.is-easy { border-color: rgba(110, 220, 130, 0.4); }
.dz-power.is-fair { border-color: rgba(154, 208, 255, 0.35); }
.dz-power.is-hard { border-color: rgba(246, 196, 69, 0.4); }
.dz-power.is-risky { border-color: rgba(255, 160, 90, 0.45); }
.dz-power.is-fatal { border-color: rgba(255, 110, 100, 0.5); }
.dz-power-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.dz-power-head > span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.5);
}
.dz-power-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0a1628;
  background: #9ad0ff;
}
.dz-power.is-easy .dz-power-badge { background: #6dff9a; color: #083018; }
.dz-power.is-fair .dz-power-badge { background: #9ad0ff; color: #0a2038; }
.dz-power.is-hard .dz-power-badge { background: linear-gradient(180deg, #ffe56a, #f0a000); color: #3a2608; }
.dz-power.is-risky .dz-power-badge { background: #ffb070; color: #3a1808; }
.dz-power.is-fatal .dz-power-badge { background: #ff8e82; color: #3a0c08; }
.dz-power-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.dz-power-row {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.dz-power-row span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.45);
}
.dz-power-row strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dz-power-row.is-need strong { color: #9ad0ff; }
.dz-power.is-hard .dz-power-row.is-need strong,
.dz-power.is-risky .dz-power-row.is-need strong { color: #ffe56a; }
.dz-power.is-fatal .dz-power-row.is-need strong { color: #ff8e82; }
.dz-power-meter {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.dz-power-meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5aa8ff, #9ad0ff);
  transition: width 0.35s ease;
}
.dz-power.is-easy .dz-power-meter > i { background: linear-gradient(90deg, #2ecc71, #6dff9a); }
.dz-power.is-fair .dz-power-meter > i { background: linear-gradient(90deg, #5aa8ff, #9ad0ff); }
.dz-power.is-hard .dz-power-meter > i { background: linear-gradient(90deg, #f0a000, #ffe56a); }
.dz-power.is-risky .dz-power-meter > i { background: linear-gradient(90deg, #e67e22, #ffb070); }
.dz-power.is-fatal .dz-power-meter > i { background: linear-gradient(90deg, #c0392b, #ff8e82); }

.dz-run {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: #0c1830;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dz-farm-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}
.dz-step {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: #12243c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dz-step:disabled { opacity: 0.35; }
.dz-step:active:not(:disabled) { transform: scale(0.96); }
.dz-farm-mid {
  min-width: 0;
  text-align: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: #0e1c30;
  border: 1px solid rgba(246, 196, 69, 0.25);
}
.dz-farm-mid span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.5);
}
.dz-farm-mid strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.dz-farm-mid em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(154, 208, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dz-farm-mid.is-boss {
  border-color: rgba(246, 196, 69, 0.55);
  background: linear-gradient(180deg, #1a2438, #241a08);
}
.dz-farm-mid.is-boss em { color: #ffe56a; }

.dz-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Ödül önizleme — kompakt şerit */
.dz-rp {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dz-rp.is-boss {
  border-color: rgba(246, 196, 69, 0.35);
}
.dz-rp-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.5);
}
.dz-rp-slots {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.dz-rp-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dz-rp-slot.is-boss {
  border-color: rgba(246, 196, 69, 0.4);
}
.dz-rp-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.dz-rp-slot b {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dz-hero-card.is-boss {
  border-color: rgba(246, 196, 69, 0.5);
  box-shadow: 0 0 0 1px rgba(246, 196, 69, 0.18);
}
.dzb-loot-slot.is-boss {
  border-color: rgba(246, 196, 69, 0.45);
}
.dz-btn {
  min-height: 48px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 900;
  border: none;
  cursor: pointer;
}
.dz-btn:disabled { opacity: 0.4; filter: grayscale(0.25); }
.dz-btn:active:not(:disabled) { transform: translateY(1px); }
.dz-btn-farm {
  color: #083018;
  background: linear-gradient(180deg, #6dff9a, #1fb855);
  box-shadow: 0 3px 0 #148a3c;
}
.dz-btn-push {
  color: #3a2608;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 3px 0 #c47d08;
}
.dz-btn-push.is-risky {
  color: #fff;
  background: linear-gradient(180deg, #ff9a7a, #e04535);
  box-shadow: 0 3px 0 #9a2418;
}

.dz-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
  text-align: center;
}
.dz-hint b { color: var(--gold); }
.dz-hint.is-warn { color: #ffb4a8; }

.dz-zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
/* Full-bleed zone kartları */
.dz-zrow {
  position: relative;
  display: block;
  min-height: 96px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #102038;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.dz-zrow.is-open { border-color: rgba(154, 208, 255, 0.32); }
.dz-zrow.is-active {
  border-color: rgba(246, 196, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(246, 196, 69, 0.18), 0 8px 16px rgba(0, 0, 0, 0.4);
}
.dz-zrow.is-boss.is-open { border-color: rgba(228, 84, 74, 0.45); }
.dz-zrow.is-locked { opacity: 0.78; }
.dz-zrow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) brightness(1.02);
  transform: scale(1.02);
}
.dz-zrow.is-locked .dz-zrow-bg {
  filter: grayscale(0.4) brightness(0.62) saturate(0.7);
}
.dz-zrow-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.82) 0%, rgba(4, 10, 20, 0.45) 55%, rgba(4, 10, 20, 0.2) 100%),
    linear-gradient(180deg, transparent 30%, rgba(4, 10, 20, 0.55) 100%);
  pointer-events: none;
}
.dz-zrow-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 96px;
  min-width: 0;
  padding: 12px 14px;
}
.dz-zrow-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dz-zrow-top strong {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dz-zrow-status {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ad0ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.dz-zrow.is-active .dz-zrow-status { color: #ffe56a; }
.dz-zrow.is-locked .dz-zrow-status { color: rgba(247, 241, 228, 0.55); }
.dz-zrow-range {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.dz-zrow-power {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}
.dz-zrow-power > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.55);
}
.dz-zrow-power > b {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.dz-zrow-power > i {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
}
.dz-zrow-power > i.is-easy { background: rgba(16, 80, 40, 0.7); color: #6dff9a; border-color: rgba(109, 255, 154, 0.35); }
.dz-zrow-power > i.is-fair { background: rgba(20, 60, 100, 0.7); color: #9ad0ff; border-color: rgba(154, 208, 255, 0.35); }
.dz-zrow-power > i.is-hard { background: rgba(80, 55, 8, 0.75); color: #ffe56a; border-color: rgba(246, 196, 69, 0.4); }
.dz-zrow-power > i.is-risky { background: rgba(90, 40, 10, 0.75); color: #ffb070; border-color: rgba(255, 176, 112, 0.4); }
.dz-zrow-power > i.is-fatal { background: rgba(90, 20, 16, 0.75); color: #ff8e82; border-color: rgba(255, 142, 130, 0.4); }
.dz-zrow-power > i.is-lock { color: rgba(247, 241, 228, 0.55); }

/* legacy 2-col cards ( invarda kalabilir ) */
.dz-zcard {
  position: relative;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #102038;
}
.dz-zcard.is-open { border-color: rgba(246, 196, 69, 0.35); }
.dz-zcard.is-boss.is-open { border-color: rgba(228, 84, 74, 0.45); }
.dz-zcard.is-locked { opacity: 0.55; }
.dz-zcard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.dz-zcard-fg {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 12, 24, 0.78));
}
.dz-zcard-fg strong {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dz-zcard-fg span,
.dz-zcard-fg em {
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
}

/* Sonuç modal barları */
.dz-res-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}
.dz-res-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
}
.dz-res-bar > span {
  grid-column: 1;
  font-size: 12px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dz-res-bar > em {
  grid-column: 2;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dz-res-bar > i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.dz-res-bar > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ddc6e, #9fe870);
}
.dz-res-bar.is-foe > i > b {
  background: linear-gradient(90deg, #e4544a, #ff8e82);
}

@media (max-width: 360px) {
  .dz-actions { grid-template-columns: 1fr; }
  .dz-btn { min-height: 44px; font-size: 13px; }
  .dz-power-row strong { font-size: 13px; }
  .dz-zrow { min-height: 88px; }
  .dz-zrow-body { min-height: 88px; padding: 10px 12px; }
  .dz-zrow-top strong { font-size: 14px; }
}
@media (max-height: 700px) {
  .dz-hero-card,
  .dz-hero-fg { height: 128px; min-height: 128px; }
  .dz-zcard { height: 68px; }
  .dz-body { gap: 10px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-icon-btn:active,
  .dz-step:active:not(:disabled),
  .dz-btn:active:not(:disabled) { transform: none; }
}

/* —— Savaş sahnesi (kahraman vs canavar) —— */
.dzb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #050d18;
  color: var(--cream, #f7f1e4);
  font-family: var(--font);
  user-select: none;
}
.dzb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dzb-bg-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(1.12) brightness(0.82) contrast(1.04);
}
.dzb-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 12, 24, 0.35) 0%, transparent 22%, transparent 58%, rgba(6, 12, 24, 0.45) 100%),
    radial-gradient(ellipse at 50% 42%, transparent 28%, rgba(4, 10, 20, 0.42) 78%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.35) 0%, transparent 28%, transparent 55%, rgba(4, 10, 20, 0.82) 100%);
  pointer-events: none;
}
.dzb-top {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: block;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 6px;
}
.dzb-top-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dzb-top-mid strong {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzb-top-mid em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
}

/* Arena — Pokémon çapraz: düşman sağ-üst, kahraman sol-alt */
.dzb-hitfx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}
.dzb.is-result .dzb-hitfx { display: none; }
/* Hit-stop: vuruş anında sprite/slash animasyonları kısa donar */
.dzb.is-hitstop .dzb-hcard,
.dzb.is-hitstop .dzb-hcard *,
.dzb.is-hitstop .dzb-fx *,
.dzb.is-hitstop .dzb-dmg {
  animation-play-state: paused !important;
}
.dzb-arena {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.dzb.is-fighting .dzb-bg-img {
  filter: saturate(1.12) brightness(0.7) contrast(1.06);
  transition: filter 0.35s ease;
}
.dzb.is-shake {
  animation: dzbShake 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.dzb.is-shake-hard {
  animation: dzbShakeHard 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes dzbShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, 0); }
  80% { transform: translate(2px, 1px); }
}
@keyframes dzbShakeHard {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(-5px, 2px) scale(1.01); }
  30% { transform: translate(6px, -3px) scale(1.015); }
  45% { transform: translate(-4px, -1px) scale(1.01); }
  60% { transform: translate(4px, 2px); }
  75% { transform: translate(-2px, 0); }
}

.dzb-top.is-minimal {
  position: absolute;
  left: 10px;
  top: calc(6px + env(safe-area-inset-top, 0px));
  z-index: 4;
  padding: 0;
  opacity: 0.55;
  pointer-events: none;
}
.dzb-top.is-minimal .dzb-top-mid strong {
  font-size: 12px;
}
.dzb-top.is-minimal .dzb-top-mid em {
  font-size: 10px;
}

/* Üst banner — kaliteli savaş başlığı */
.dzb-top.is-banner {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 56px 10px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.72) 0%, rgba(4, 10, 20, 0.28) 70%, transparent 100%);
}

/* Savaştan çık */
.dzb-leave {
  position: absolute;
  left: 10px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 12;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #e8eef8;
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.dzb-leave svg { width: 22px; height: 22px; }
.dzb-leave:active { transform: scale(0.95); }
.dzb-leave.hidden,
.dzb.is-result .dzb-leave,
.dzb.is-leaving .dzb-leave { display: none; }

/* Oto + hız — skill satırının hemen altında */
.dzb-auto {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  max-width: 400px;
  margin: 8px auto 0;
  pointer-events: auto;
}
.dzb.is-result .dzb-auto { visibility: hidden; }
.dzb.is-leaving .dzb-auto { display: none; }
.dzb-auto-btn,
.dzb-spd button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dce6f5;
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.dzb-auto-btn { min-width: 52px; }
.dzb-auto-btn.is-on {
  color: #1a1208;
  background: #f0c14a;
  border-color: rgba(240, 193, 74, 0.8);
}
.dzb-spd {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.dzb-spd button {
  min-width: 40px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.dzb-spd button + button { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.dzb-spd button.is-on {
  color: #1a1208;
  background: #8ec8ff;
}
.dzb-spd [data-spd="2"].is-on {
  background: #f0c14a;
}
.dzb-spd [data-spd="2"].is-locked {
  position: relative;
  opacity: 0.72;
}
.dzb-spd [data-spd="2"].is-locked::after {
  content: "VIP";
  position: absolute;
  right: 3px;
  top: 2px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #f0c14a;
}
.dzb-auto-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  white-space: nowrap;
  color: #1a1208;
  background: #f0c14a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.dzb-auto-hint.hidden { display: none; }
.dzb.is-speed-2 .dzb-hcard.is-windup { animation-duration: 0.11s; }
.dzb.is-speed-2 .dzb-hcard.is-strike { animation-duration: 0.17s; }
.dzb.is-speed-2 .dzb-hcard.is-recover { animation-duration: 0.1s; }
.dzb.is-speed-2 .dzb-hcard.is-hit { animation-duration: 0.16s; }
.dzb.is-speed-2 .dzb-hcard.is-hit-crit { animation-duration: 0.21s; }

.dzb-leave-ask {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 20, 0.66);
  pointer-events: auto;
}
.dzb-leave-ask.hidden { display: none; }
.dzb-leave-card {
  width: min(100%, 300px);
  padding: 22px 18px 16px;
  border-radius: 16px;
  background: #0c1830;
  border: 1.5px solid rgba(246, 196, 69, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.dzb-leave-card strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.dzb-leave-card p {
  margin: 8px 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.dzb-leave-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dzb-leave-acts button {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dzb-leave-acts [data-leave-no] {
  color: #dce6f5;
  background: rgba(255, 255, 255, 0.06);
}
.dzb-leave-acts [data-leave-yes] {
  color: #1a1208;
  background: #f0c14a;
  border-color: rgba(240, 193, 74, 0.7);
}
.dzb-top.is-banner .dzb-top-mid {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.dzb-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2a1a08;
  background: linear-gradient(180deg, #ffe56a, #f0a820);
  border: 1px solid rgba(255, 240, 180, 0.65);
  box-shadow:
    0 2px 0 rgba(120, 70, 0, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.35);
}
.dzb-top.is-banner .dzb-top-mid strong {
  margin: 0;
  font-size: clamp(22px, 6.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(255, 200, 90, 0.22);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.dzb-top-diff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  padding: 4px 14px 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.dzb-top-diff.is-nightmare {
  color: #f4e9ff;
  background:
    linear-gradient(180deg, rgba(168, 110, 255, 0.95), rgba(92, 42, 180, 0.98));
  border-color: rgba(220, 180, 255, 0.55);
  text-shadow:
    0 0 10px rgba(200, 140, 255, 0.85),
    0 1px 0 rgba(40, 0, 80, 0.9);
  box-shadow:
    0 0 16px rgba(140, 70, 255, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.dzb-top-diff.is-hard {
  color: #fff0ee;
  background: linear-gradient(180deg, rgba(236, 96, 86, 0.95), rgba(160, 36, 36, 0.98));
  border-color: rgba(255, 170, 150, 0.45);
  text-shadow: 0 0 8px rgba(255, 90, 70, 0.55), 0 1px 0 rgba(60, 0, 0, 0.8);
}
.dzb-top-diff.is-easy {
  color: #eafff0;
  background: linear-gradient(180deg, rgba(70, 200, 120, 0.92), rgba(28, 130, 70, 0.96));
  border-color: rgba(160, 255, 190, 0.4);
  text-shadow: 0 1px 0 rgba(0, 50, 20, 0.75);
}
.dzb.is-diff-nightmare .dzb-top.is-banner .dzb-top-mid strong {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 3px 12px rgba(0, 0, 0, 0.7),
    0 0 26px rgba(160, 90, 255, 0.35);
}
.dzb-top-sub {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.dzb.is-world-boss .dzb-top.is-banner .dzb-top-mid strong {
  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);
}

.dzb-unit {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  will-change: transform, filter;
  overflow: visible;
  z-index: 2;
}
.dzb-unit.is-enemy {
  /* Goblin: sahne ortası (üst bant) */
  top: 16%;
  left: 0;
  right: 0;
  bottom: auto;
  margin: 0 auto;
  width: min(72vw, 200px);
  height: auto;
  gap: 4px;
  align-items: center;
}
.dzb-unit.is-enemy.is-boss {
  top: 10%;
  width: min(72vw, 220px);
  z-index: 2;
}
.dzb-unit.is-hero {
  left: 0;
  right: 0;
  bottom: 2%;
  margin: 0 auto;
  width: min(72vw, 220px);
  height: auto;
  z-index: 3;
  gap: 6px;
  align-items: center;
}
.dzb-pad {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 86%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.22), transparent 62%),
    radial-gradient(ellipse at 50% 60%, rgba(40, 70, 50, 0.55), rgba(10, 20, 16, 0.15) 70%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}
.dzb-unit.is-enemy .dzb-pad {
  bottom: 0;
  width: 90%;
  height: 20%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.18), transparent 62%),
    radial-gradient(ellipse at 50% 60%, rgba(60, 90, 70, 0.5), rgba(10, 20, 16, 0.12) 70%);
}
.dzb-unit.is-hero .dzb-pad {
  left: 50%;
  bottom: auto;
  top: 42%;
  width: min(32vw, 112px);
  height: 16%;
  transform: translateX(-50%);
}
.dzb-arena > .dzb-fx {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 72px;
  height: 72px;
  pointer-events: none;
  z-index: 6;
}

/* Yatay HUD kart — sol avatar + stats + HP (referans) */
.dzb-hcard {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: stretch;
  width: calc(100% - 28px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid rgba(255, 220, 170, 0.28);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-font-smoothing: antialiased;
  will-change: transform, filter;
  overflow: visible;
}
.dzb-hcard:has(.dzb-fx.is-impact) {
  z-index: 14;
}
.dzb-hcard.is-enemy {
  background: linear-gradient(135deg, #3a2218 0%, #1a1210 55%, #24160f 100%);
  border-color: rgba(255, 140, 90, 0.35);
}
.dzb-hcard.is-hero {
  background: linear-gradient(135deg, #1a2a3e 0%, #101820 55%, #152030 100%);
  border-color: rgba(120, 180, 255, 0.32);
}
.dzb-hcard.is-faint {
  opacity: 0.45;
  filter: grayscale(0.7);
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.dzb-hcard-av {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.dzb-hcard-av-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.dzb-hcard.is-enemy .dzb-hcard-av-img {
  object-fit: contain;
  object-position: center bottom;
  background: rgba(0, 0, 0, 0.25);
}
.dzb-hcard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.dzb-hcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}
.dzb-hcard-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dzb-hcard-id strong {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzb-hcard.is-hero .dzb-hcard-id strong {
  color: #9fe870;
}
.dzb-hcard-id em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
}
.dzb-hcard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.dzb-hstat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}
.dzb-hstat svg {
  width: 14px;
  height: 14px;
  opacity: 0.95;
}
.dzb-hstat.is-atk { color: #ffb860; }
.dzb-hstat.is-hp { color: #ff7a7a; }
.dzb-hstat.is-def { color: #7ec8ff; }
.dzb-hstat b { font-weight: 900; }
.dzb-hcard-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.dzb-hcard .dzb-hp-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.dzb-hcard .dzb-hp-track > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f8f3a, #4ade80 55%, #bbf7d0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: width 0.35s ease;
}
.dzb-hcard.is-enemy .dzb-hp-track > b {
  background: linear-gradient(90deg, #b71c1c, #ef5350 55%, #ffab91);
}
.dzb-hcard-hp {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dzb-hcard .dzb-dmg,
.bf-fig .dzb-dmg {
  position: absolute;
  left: 50%;
  top: 8%;
  right: auto;
  z-index: 30;
  margin: 0;
  flex: 0 0 auto;
  font-size: 22px;
  pointer-events: none;
  transform: translate(-50%, 0);
}
.dzb-hcard .dzb-dmg > b,
.bf-fig .dzb-dmg > b {
  font-size: clamp(26px, 7.2vw, 34px);
  letter-spacing: -0.02em;
  color: #ff3b3b;
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.72);
  text-shadow:
    0 2px 0 #000,
    0 0 12px rgba(255, 40, 40, 0.7),
    0 0 22px rgba(255, 80, 40, 0.35);
}
.dzb-hcard .dzb-dmg > i,
.bf-fig .dzb-dmg > i {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #ffe56a;
  text-shadow: 0 1px 2px #000, 0 0 10px rgba(255, 210, 60, 0.75);
}
.dzb-hcard .dzb-dmg.is-crit > b,
.bf-fig .dzb-dmg.is-crit > b {
  font-size: clamp(30px, 8.2vw, 40px);
  color: #ffe56a;
  -webkit-text-stroke: 1.4px rgba(70, 30, 0, 0.75);
  text-shadow:
    0 2px 0 #4a2200,
    0 0 14px rgba(255, 210, 60, 0.95),
    0 0 28px rgba(255, 120, 20, 0.65);
}
.dzb-hcard .dzb-dmg.is-pop,
.bf-fig .dzb-dmg.is-pop {
  display: inline-flex !important;
  opacity: 1;
  animation: dzbDmgInCard 0.42s cubic-bezier(0.12, 1.15, 0.28, 1) both;
}
.dzb-hcard .dzb-dmg.is-boom.is-pop,
.bf-fig .dzb-dmg.is-boom.is-pop {
  animation: dzbDmgBoomCard 0.55s cubic-bezier(0.1, 1.2, 0.25, 1) both;
}
.dzb-hcard .dzb-dmg.is-fade,
.bf-fig .dzb-dmg.is-fade {
  display: inline-flex !important;
  animation: dzbDmgOutCard 0.48s ease-in both;
}
.dzb-hcard .dzb-dmg-burst,
.bf-fig .dzb-dmg-burst {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 240, 160, 0.95) 0%, rgba(255, 140, 40, 0.45) 38%, transparent 70%);
  box-shadow:
    0 0 0 2px rgba(255, 220, 100, 0.55),
    0 0 28px rgba(255, 170, 40, 0.75);
  animation: dzbDmgBurstRing 0.55s ease-out forwards;
}
@keyframes dzbDmgInCard {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(0.55); }
  55% { opacity: 1; transform: translate(-50%, -6px) scale(1.12); }
  100% { opacity: 1; transform: translate(-50%, -12px) scale(1); }
}
@keyframes dzbDmgBoomCard {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.35) rotate(-8deg); filter: brightness(1.8); }
  35% { opacity: 1; transform: translate(-50%, -10px) scale(1.38) rotate(3deg); filter: brightness(1.35); }
  70% { transform: translate(-50%, -16px) scale(1.08) rotate(-1deg); filter: brightness(1.1); }
  100% { opacity: 1; transform: translate(-50%, -20px) scale(1) rotate(0deg); filter: brightness(1); }
}
@keyframes dzbDmgOutCard {
  0% { opacity: 1; transform: translate(-50%, -12px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -36px) scale(0.88); }
}
@keyframes dzbDmgBurstRing {
  0% { opacity: 0.95; transform: scale(0.25); }
  100% { opacity: 0; transform: scale(1.85); }
}
.dzb-card-head strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  color: #1a2230;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.dzb-card-head em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  color: #2a3344;
  font-variant-numeric: tabular-nums;
}
.dzb-card-head em > i {
  font-style: normal;
  font-size: 10px;
  margin-right: 2px;
  opacity: 0.7;
}
.dzb-card-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  padding: 2px 0 0;
}
.dzb-card-lab {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #c0392b;
}
.dzb-card.is-hero .dzb-card-lab { color: #c0392b; }
.dzb-card .dzb-hp-track {
  height: 8px;
  border-radius: 2px;
  background: #1a2230;
  border: 2px solid #1a2230;
  overflow: hidden;
  box-shadow: none;
}
.dzb-card .dzb-hp-track > b {
  display: block;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, #3ecf5a, #7dff8f);
  transition: width 0.22s ease;
}
.dzb-card .dzb-hp-track.is-hero > b {
  background: linear-gradient(90deg, #3ecf5a, #7dff8f);
}
.dzb-card-num {
  display: block;
  margin-top: 5px;
  text-align: right;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #2a3344;
  font-variant-numeric: tabular-nums;
}

/* Wind-up → dash (yatay) → recover */
.dzb-unit.is-hero.is-windup {
  animation: dzbHeroWind 0.16s ease-out forwards;
}
.dzb-unit.is-enemy.is-windup {
  animation: dzbEnemyWind 0.16s ease-out forwards;
}
.dzb-unit.is-hero.is-strike {
  animation: dzbHeroStrike 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
  z-index: 6;
}
.dzb-unit.is-enemy.is-strike {
  animation: dzbEnemyStrike 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
  z-index: 6;
}
.dzb-unit.is-recover {
  animation: dzbRecover 0.2s ease-out forwards;
}
@keyframes dzbHeroWind {
  to { transform: translateX(-10px) scale(0.96); filter: brightness(1.05); }
}
@keyframes dzbEnemyWind {
  to { transform: translateX(10px) scale(0.96); filter: brightness(1.05); }
}
@keyframes dzbHeroStrike {
  0% { transform: translateX(-10px) scale(0.96); }
  40% { transform: translateX(28px) scale(1.08); filter: brightness(1.25); }
  100% { transform: translateX(12px) scale(1.02); }
}
@keyframes dzbEnemyStrike {
  0% { transform: translateX(10px) scale(0.96); }
  40% { transform: translateX(-22px) scale(1.06); filter: brightness(1.2); }
  100% { transform: translateX(-10px) scale(1.02); }
}
@keyframes dzbRecover {
  to { transform: translate(0, 0) scale(1) rotate(0); filter: none; }
}

.dzb-unit.is-hit .dzb-sprite {
  animation: dzbHitRecoil 0.32s ease-out;
}
.dzb-unit.is-hit-crit .dzb-sprite {
  animation: dzbHitCrit 0.42s ease-out;
}
.dzb-unit.is-flash-white .dzb-sprite-img {
  animation: dzbFlashWhite 0.22s ease-out;
}
@keyframes dzbHitRecoil {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(12px, -2px) scale(0.94); filter: brightness(2); }
  55% { transform: translate(-6px, 1px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes dzbHitCrit {
  0% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(16px, -4px) scale(0.9); filter: brightness(2.4); }
  40% { transform: translate(-12px, 2px) scale(0.92); }
  65% { transform: translate(7px, 0); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes dzbFlashWhite {
  0% { filter: brightness(3) saturate(0.2); }
  100% { filter: none; }
}

/* Ölüm — sprite düşer, unit opacity yumuşak; is-down ile aynı bitiş pozu (snap yok) */
.dzb-unit.is-dying {
  z-index: 8;
  pointer-events: none;
  animation: dzbDieUnit 1.35s ease-out forwards;
}
.dzb-unit.is-dying .dzb-sprite {
  transform-origin: 50% 90%;
  animation: dzbDieFall 1.35s cubic-bezier(0.28, 0.12, 0.22, 1) forwards;
  will-change: transform, filter, opacity;
}
.dzb-unit.is-hero.is-dying .dzb-sprite {
  animation-name: dzbDieFallHero;
}
.dzb-unit.is-dying .dzb-sprite-img {
  animation: dzbDieFlash 0.55s ease-out forwards;
}
.dzb-unit.is-dying .dzb-card,
.dzb-hcard.is-faint {
  pointer-events: none;
}
.dzb-unit.is-dying .dzb-pad {
  animation: dzbDiePadOut 0.7s ease-out forwards;
}
@keyframes dzbDieUnit {
  0% { opacity: 1; filter: none; }
  35% { opacity: 1; }
  100% { opacity: 0.22; filter: grayscale(0.9) brightness(0.55); }
}
@keyframes dzbDieFall {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; filter: none; }
  12% { transform: translate(2px, -10px) rotate(2deg) scale(1.05); filter: brightness(1.85); }
  28% { transform: translate(-4px, 4px) rotate(5deg) scale(1.02); filter: brightness(1.2) saturate(0.7); }
  55% { transform: translate(6px, 18px) rotate(10deg) scale(0.94); opacity: 0.92; filter: grayscale(0.45) brightness(0.75); }
  78% { transform: translate(2px, 30px) rotate(13deg) scale(0.9); opacity: 0.88; filter: grayscale(0.8) brightness(0.55); }
  100% { transform: translate(0, 36px) rotate(14deg) scale(0.88); opacity: 0.85; filter: grayscale(1) brightness(0.5); }
}
@keyframes dzbDieFallHero {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; filter: none; }
  12% { transform: translate(-2px, -10px) rotate(-2deg) scale(1.05); filter: brightness(1.85); }
  28% { transform: translate(4px, 4px) rotate(-5deg) scale(1.02); filter: brightness(1.2) saturate(0.7); }
  55% { transform: translate(-6px, 18px) rotate(-9deg) scale(0.94); opacity: 0.92; filter: grayscale(0.45) brightness(0.75); }
  78% { transform: translate(-2px, 30px) rotate(-11deg) scale(0.9); opacity: 0.88; filter: grayscale(0.8) brightness(0.55); }
  100% { transform: translate(0, 36px) rotate(-12deg) scale(0.88); opacity: 0.85; filter: grayscale(1) brightness(0.5); }
}
@keyframes dzbDieFlash {
  0% { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)) brightness(2.4) saturate(0.15); }
  40% { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)) brightness(1.35) saturate(0.5); }
  100% { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55)) brightness(0.75) saturate(0.25); }
}
@keyframes dzbDieCardOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(8px) scale(0.94); }
}
@keyframes dzbDiePadOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
.dzb-unit.is-down {
  opacity: 0.22;
  filter: grayscale(0.9) brightness(0.55);
  pointer-events: none;
}
.dzb-unit.is-down .dzb-sprite {
  transform-origin: 50% 90%;
  transform: translate(0, 36px) rotate(14deg) scale(0.88);
  opacity: 0.85;
  filter: grayscale(1) brightness(0.5);
}
.dzb-unit.is-hero.is-down .dzb-sprite {
  transform: translate(0, 36px) rotate(-12deg) scale(0.88);
}
.dzb-unit.is-down .dzb-pad {
  opacity: 0;
  visibility: hidden;
}
.dzb-unit.is-down .dzb-hp-track > b {
  width: 0% !important;
}

.dzb-sprite {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: end center;
  overflow: visible;
  background: none;
  border: none;
}
.dzb-unit.is-hero .dzb-sprite {
  width: min(32vw, 112px);
  height: min(32vw, 112px);
  flex: 0 0 auto;
  margin: 0 auto;
}
.dzb-unit.is-enemy .dzb-sprite {
  width: min(34vw, 128px);
  height: min(22vh, 150px);
  flex: 0 0 auto;
  margin: 0 auto;
}
.dzb-unit.is-enemy.is-boss .dzb-sprite {
  width: min(46vw, 190px);
  height: min(30vh, 220px);
}
.dzb-unit.is-enemy .dzb-pad {
  left: 50%;
  width: min(34vw, 128px);
  transform: translateX(-50%);
}
.dzb-unit.is-enemy.is-boss .dzb-pad {
  width: min(46vw, 190px);
}
.dzb-unit.is-boss .dzb-sprite {
  overflow: visible;
}
.dzb-sprite-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  border-radius: 0;
  background: transparent;
  border: none;
}
.dzb-sprite-img.is-mob {
  border-radius: 0;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}
.dzb-sprite-img.is-mob.is-boss {
  transform: scale(1.05);
  transform-origin: center bottom;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.7));
}
.dzb-sprite-img.is-hero {
  border-radius: 0;
  border: none;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  mix-blend-mode: normal;
  clip-path: none;
}
.dzb-unit.is-strike .dzb-sprite-img.is-hero {
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(255, 220, 120, 0.35));
}
.dzb-unit.is-strike .dzb-sprite-img.is-mob {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(255, 160, 80, 0.3));
}

/* HP — kafanın üstünde */
.dzb-hp.is-over {
  width: min(100%, 132px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dzb-hp.is-over strong {
  max-width: 100%;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzb-hp.is-over em {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  font-variant-numeric: tabular-nums;
}
.dzb-hp-track {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.dzb-hp-track > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c0392b, #ff6b5c);
  transition: width 0.22s ease;
}
.dzb-hp-track.is-hero > b {
  background: linear-gradient(90deg, #2fdc6a, #9fe870);
}

/* Düşman / Boss can barı — daha okunaklı */
.dzb-unit.is-enemy .dzb-hp.is-over {
  position: relative;
  z-index: 3;
  width: min(100%, 148px);
  margin-bottom: 2px;
  padding: 5px 7px 6px;
  border-radius: 12px;
  background: rgba(6, 12, 22, 0.82);
  border: 1px solid rgba(255, 120, 100, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.dzb-unit.is-enemy .dzb-hp.is-over strong {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #ffe8e4;
}
.dzb-unit.is-enemy .dzb-hp-track {
  height: 14px;
  border: 1.5px solid rgba(255, 200, 190, 0.35);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65);
}
.dzb-unit.is-enemy .dzb-hp-track > b {
  background: linear-gradient(90deg, #8b1a12, #e74c3c 55%, #ff8a7a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.dzb-unit.is-enemy .dzb-hp.is-over em {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 1px 8px;
  line-height: 1.35;
}
.dzb-unit.is-boss .dzb-hp.is-over {
  width: min(100%, 168px);
  margin-bottom: 6px;
  border-color: rgba(246, 196, 69, 0.55);
  background: linear-gradient(180deg, rgba(28, 18, 10, 0.9), rgba(8, 12, 20, 0.88));
}
.dzb-unit.is-boss .dzb-sprite {
  margin-top: 2px;
}
.dzb-unit.is-boss .dzb-hp.is-over strong {
  font-size: 13px;
  color: #ffe56a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
.dzb-unit.is-boss .dzb-hp-track {
  height: 16px;
  border-color: rgba(246, 196, 69, 0.4);
}
.dzb-unit.is-boss .dzb-hp.is-over em {
  font-size: 14px;
  color: #fff6cf;
}
.dzb-hp-track.is-punch {
  animation: dzbBarPunch 0.28s ease-out;
}
@keyframes dzbBarPunch {
  0% { transform: scaleX(1); filter: brightness(1); }
  35% { transform: scaleX(1.04); filter: brightness(1.6); }
  100% { transform: scaleX(1); filter: brightness(1); }
}

/* Hasar — kırmızı net sayı */
.dzb-dmg {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translate(-50%, 0);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 40;
  white-space: nowrap;
  opacity: 0;
}
.dzb-dmg > b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: #ff4d4d;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.55);
  text-shadow:
    0 2px 0 #000,
    0 0 10px rgba(255, 40, 40, 0.55);
  font-variant-numeric: tabular-nums;
}
.dzb-dmg > i {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ffe56a;
  text-shadow: 0 1px 2px #000;
}
.dzb-dmg.is-crit > b {
  font-size: 34px;
  color: #ffe56a;
  -webkit-text-stroke: 1px rgba(80, 40, 0, 0.65);
}
.dzb-dmg.is-pop {
  display: inline-flex !important;
  opacity: 1;
  animation: dzbDmgIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.dzb-dmg.is-fade {
  display: inline-flex !important;
  opacity: 0;
  animation: dzbDmgOut 0.45s ease-in both;
}
.dzb-dmg.hidden {
  display: none !important;
  opacity: 0;
  animation: none;
}
@keyframes dzbDmgIn {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(0.7); }
  100% { opacity: 1; transform: translate(-50%, -8px) scale(1); }
}
@keyframes dzbDmgOut {
  0% { opacity: 1; transform: translate(-50%, -8px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(0.92); }
}

/* Impact FX */
.dzb-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
}
.dzb-arena > .dzb-fx.is-impact {
  position: relative;
  left: auto;
  top: auto;
  margin: 0;
  width: 88px;
  height: 88px;
}
.dzb-fx.is-impact { opacity: 1; }
.dzb-fx.is-impact::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
  animation: dzbImpactCore 0.32s ease-out forwards;
}
.dzb-fx.is-hero-atk.is-impact::before {
  background: radial-gradient(circle, rgba(255, 230, 140, 0.9), rgba(255, 160, 40, 0.25) 45%, transparent 72%);
}
.dzb-fx.is-enemy-atk.is-impact::before {
  background: radial-gradient(circle, rgba(255, 120, 100, 0.9), rgba(200, 40, 40, 0.3) 45%, transparent 72%);
}
.dzb-fx.is-crit.is-impact::before {
  inset: 0%;
  background: radial-gradient(circle, rgba(255, 245, 180, 1), rgba(255, 160, 40, 0.55) 40%, transparent 72%);
  animation: dzbImpactCrit 0.48s ease-out forwards;
  box-shadow: 0 0 40px rgba(255, 190, 60, 0.85);
}
@keyframes dzbImpactCrit {
  0% { transform: scale(0.15); opacity: 1; }
  45% { transform: scale(1.55); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes dzbImpactCore {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.dzb-slash,
.dzb-ring,
.dzb-spark {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
}
.dzb-slash {
  width: 120%;
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fff 35%, #ffe56a 50%, #fff 65%, transparent);
  box-shadow: 0 0 18px rgba(255, 230, 140, 0.85);
  transform: rotate(-28deg) scaleX(0.2);
}
.dzb-fx.is-enemy-atk .dzb-slash {
  background: linear-gradient(90deg, transparent, #fff 30%, #ff8e82 50%, #fff 70%, transparent);
  box-shadow: 0 0 18px rgba(255, 100, 80, 0.8);
  transform: rotate(28deg) scaleX(0.2);
}
.dzb-slash.is-on {
  animation: dzbSlashHero 0.28s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
.dzb-fx.is-enemy-atk .dzb-slash.is-on {
  animation: dzbSlashEnemy 0.28s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
.dzb-fx.is-crit .dzb-slash.is-on {
  height: 18px;
  animation: dzbSlashHeroCrit 0.34s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
.dzb-fx.is-crit.is-enemy-atk .dzb-slash.is-on {
  animation: dzbSlashEnemyCrit 0.34s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}
@keyframes dzbSlashHero {
  0% { opacity: 0; transform: rotate(-28deg) scaleX(0.15); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-28deg) scaleX(1.15); }
}
@keyframes dzbSlashEnemy {
  0% { opacity: 0; transform: rotate(28deg) scaleX(0.15); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: rotate(28deg) scaleX(1.15); }
}
@keyframes dzbSlashHeroCrit {
  0% { opacity: 0; transform: rotate(-38deg) scaleX(0.1); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-18deg) scaleX(1.35); }
}
@keyframes dzbSlashEnemyCrit {
  0% { opacity: 0; transform: rotate(38deg) scaleX(0.1); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(18deg) scaleX(1.35); }
}

.dzb-ring {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(255, 220, 120, 0.55);
}
.dzb-fx.is-enemy-atk .dzb-ring {
  border-color: rgba(255, 140, 120, 0.9);
  box-shadow: 0 0 16px rgba(255, 80, 60, 0.55);
}
.dzb-ring.is-on {
  animation: dzbRing 0.36s ease-out forwards;
}
@keyframes dzbRing {
  0% { opacity: 0.95; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(1.7); }
}

.dzb-spark {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 35%, #ffe56a 0 2px, transparent 3px),
    radial-gradient(circle at 55% 70%, #fff 0 1.5px, transparent 3px),
    radial-gradient(circle at 25% 65%, #ffb070 0 2px, transparent 3px),
    radial-gradient(circle at 75% 60%, #fff 0 1.5px, transparent 3px);
}
.dzb-spark.is-on {
  animation: dzbSpark 0.38s ease-out forwards;
}
@keyframes dzbSpark {
  0% { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Eski knight splash burst kapatıldı — vuruş: hitFx canvas + slash/ring */
.dzb-burst,
.dzb-skico {
  display: none !important;
}
.dzb-fx.is-skill.is-impact::before {
  inset: 4%;
  animation: dzbImpactCore 0.42s ease-out forwards;
}
.dzb-fx.tint-gold.is-impact::before {
  background: radial-gradient(circle, rgba(255, 236, 150, 0.95), rgba(255, 170, 40, 0.35) 48%, transparent 72%);
}
.dzb-fx.tint-cyan.is-impact::before {
  background: radial-gradient(circle, rgba(180, 250, 255, 0.95), rgba(60, 180, 255, 0.35) 48%, transparent 72%);
}
.dzb-fx.tint-violet.is-impact::before {
  background: radial-gradient(circle, rgba(230, 190, 255, 0.95), rgba(150, 80, 255, 0.38) 48%, transparent 72%);
}
.dzb-fx.tint-crimson.is-impact::before {
  background: radial-gradient(circle, rgba(255, 180, 160, 0.95), rgba(255, 50, 50, 0.4) 48%, transparent 72%);
}
.dzb-fx.tint-steel.is-impact::before {
  background: radial-gradient(circle, rgba(230, 240, 255, 0.95), rgba(140, 160, 190, 0.4) 48%, transparent 72%);
}
.dzb-fx.tint-orange.is-impact::before {
  background: radial-gradient(circle, rgba(255, 210, 140, 0.95), rgba(255, 120, 30, 0.4) 48%, transparent 72%);
}
.dzb-fx.tint-teal.is-impact::before {
  background: radial-gradient(circle, rgba(170, 255, 230, 0.95), rgba(30, 190, 170, 0.38) 48%, transparent 72%);
}
.dzb-fx.tint-cyan .dzb-slash,
.dzb-fx.tint-teal .dzb-slash {
  background: linear-gradient(90deg, transparent, #fff 30%, #7ef0ff 50%, #fff 70%, transparent);
  box-shadow: 0 0 18px rgba(100, 220, 255, 0.85);
}
.dzb-fx.tint-violet .dzb-slash,
.dzb-fx.tint-crimson .dzb-slash {
  background: linear-gradient(90deg, transparent, #fff 30%, #ff9ad8 50%, #fff 70%, transparent);
  box-shadow: 0 0 18px rgba(220, 100, 255, 0.8);
}
/* Skill FX — düşman kartının ortasında slash/ring */
.dzb-hcard > .dzb-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  z-index: 12;
  overflow: visible;
  pointer-events: none;
}
.dzb-hcard > .dzb-fx.is-impact {
  opacity: 1;
}

.dzb-skill.is-cast {
  animation: dzbSkillCast 0.55s ease-out;
  border-color: #ffe56a;
  box-shadow: 0 0 16px rgba(255, 210, 80, 0.65), inset 0 0 12px rgba(255, 220, 100, 0.25);
  z-index: 2;
}
@keyframes dzbSkillCast {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.dzb-skill.is-casting,
.dzb-skill.is-cd {
  border-color: #7ad7ff;
  box-shadow: 0 0 18px rgba(100, 200, 255, 0.55), inset 0 0 14px rgba(80, 180, 255, 0.22);
  z-index: 3;
}
.dzb-skill.is-cd {
  pointer-events: none;
}
.dzb-skill-veil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(2, 6, 14, 0.72);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.12s ease;
}
.dzb-skill.is-cd .dzb-skill-veil {
  opacity: 1;
}
.dzb-skill.is-cd .dzb-skill-art {
  filter: grayscale(0.7) brightness(0.42) saturate(0.55);
}
.dzb-skill-cdbig {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: clamp(16px, 5.2vw, 22px);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 10px rgba(90, 190, 255, 0.85),
    0 2px 0 rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 6;
}
.dzb-skill-cdbig[hidden] {
  display: none !important;
}
.dzb-skill.is-casting .dzb-skill-dur,
.dzb-skill.is-cd .dzb-skill-dur {
  color: #ffe56a;
  border-color: rgba(255, 229, 106, 0.7);
  background: linear-gradient(180deg, rgba(20, 36, 58, 0.95), rgba(8, 16, 30, 0.92));
  z-index: 7;
}
.dzb-skill.is-cd .dzb-skill-dur.is-live {
  opacity: 1;
}
.dzb-skill.is-casting .dzb-skill-cast,
.dzb-skill.is-cd .dzb-skill-cast {
  transform: scaleX(1);
  width: var(--sk-left, 100%);
  transition: width 0.1s linear;
  animation: none;
  z-index: 7;
}
.dzb-skill.is-cd .dzb-skill-dur {
  font-size: 10px;
  letter-spacing: 0.04em;
}
.dzb-skill.is-cd .dzb-skill-lv {
  opacity: 0.35;
}
.dzb-skill-cast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #7ad7ff, #ffe56a);
  pointer-events: none;
  z-index: 4;
}
@keyframes dzbSkillCastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.dzb-skill-dur {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.02em;
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(10, 24, 42, 0.92), rgba(6, 14, 28, 0.88));
  border: 1px solid rgba(122, 215, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 3;
}
.dzb-skill-dur > b {
  color: #7ad7ff;
  font-weight: 900;
  margin-right: 2px;
}

.dzb.is-hud-cards .dzb-battle-col {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  width: 100%;
}
.dzb.is-hud-cards .dzb-log {
  margin: 0 auto;
  max-width: 400px;
  width: calc(100% - 28px);
}
/* Boss skill: telegraph + ad bandı + ağır vuruş */
.dzb-foe-banner {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 30;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 26px 12px;
  pointer-events: none;
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(120, 8, 14, 0.82) 18%, rgba(120, 8, 14, 0.82) 82%, transparent);
  animation: dzbBanner 1.2s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.dzb-foe-banner small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.32em;
  color: #ffb3a8;
}
.dzb-foe-banner strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 70, 50, 0.9), 0 3px 0 rgba(0, 0, 0, 0.6);
}
.dzb-foe-banner.is-ult {
  background: linear-gradient(90deg, transparent, rgba(70, 0, 110, 0.86) 14%, rgba(70, 0, 110, 0.86) 86%, transparent);
  animation-duration: 1.5s;
}
.dzb-foe-banner.is-ult strong {
  font-size: 32px;
  color: #ffe9a8;
  text-shadow: 0 0 20px rgba(255, 190, 60, 0.95), 0 3px 0 rgba(0, 0, 0, 0.7);
}
@keyframes dzbBanner {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.4); }
  14% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.06); }
  24% { transform: translate(-50%, -50%) scaleX(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -58%) scaleX(1); }
}
.dzb.is-boss-telegraph .dzb-bg { filter: brightness(0.55) saturate(0.8); transition: filter 0.25s ease; }
.dzb.is-boss-telegraph [data-card="enemy"] {
  animation: dzbBossCharge 0.18s ease-in-out infinite alternate;
}
@keyframes dzbBossCharge {
  from { transform: scale(1) translateX(-1px); box-shadow: 0 0 0 2px rgba(255, 70, 50, 0.7), 0 0 18px rgba(255, 70, 50, 0.5); }
  to { transform: scale(1.025) translateX(1px); box-shadow: 0 0 0 3px rgba(255, 120, 80, 0.95), 0 0 34px rgba(255, 70, 50, 0.85); }
}
.dzb.is-boss-slam .dzb-battle-col { animation: dzbBossSlam 0.5s ease-out; }
.dzb.is-boss-slam-ult .dzb-battle-col { animation: dzbBossSlamUlt 0.8s ease-out; }
@keyframes dzbBossSlam {
  0% { transform: translateY(0) scale(1); }
  14% { transform: translateY(12px) scale(1.035); }
  40% { transform: translateY(-5px) scale(0.995); }
  100% { transform: none; }
}
@keyframes dzbBossSlamUlt {
  0% { transform: translateY(0) scale(1); }
  10% { transform: translateY(18px) scale(1.06); }
  26% { transform: translate(-8px, -8px) scale(0.99); }
  44% { transform: translate(7px, 5px) scale(1.015); }
  66% { transform: translate(-3px, -2px); }
  100% { transform: none; }
}
.dzb.is-foe-cast .dzb-veil {
  animation: dzbFoeCast 0.7s ease-out;
}
@keyframes dzbFoeCast {
  0% { box-shadow: inset 0 0 0 rgba(255, 60, 40, 0); }
  45% { box-shadow: inset 0 0 90px rgba(255, 60, 40, 0.45); }
  100% { box-shadow: inset 0 0 0 rgba(255, 60, 40, 0); }
}
.dzb-log.is-hero-act {
  border-color: #3d6bb8;
  background: linear-gradient(180deg, #e8f2ff, #d4e4f8);
}
.dzb-log.is-enemy-act {
  border-color: #c44b3a;
  background: linear-gradient(180deg, #ffece8, #f5d8d0);
}
.dzb-log.is-skill-act .dzb-log-txt {
  color: #4a3390;
}
.dzb-log-who {
  display: inline-block;
  flex-shrink: 0;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dzb-log.is-hero-act .dzb-log-who {
  background: #3d6bb8;
  color: #fff;
}
.dzb-log.is-enemy-act .dzb-log-who {
  background: #c44b3a;
  color: #fff;
}
.dzb-log-txt {
  flex: 1 1 auto;
  min-width: 0;
}
.dzb-hcard.is-attacking {
  box-shadow:
    0 0 0 3px rgba(255, 196, 72, 0.9),
    0 6px 0 rgba(0, 0, 0, 0.32);
  z-index: 8;
}
.dzb-hcard.is-targeted {
  filter: brightness(1.1);
}
.dzb.is-hud-cards .dzb-arena.is-fx-only {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 220px);
  height: 56px;
  overflow: visible;
  margin: 0 auto;
}
.dzb.is-hud-cards .dzb-arena.is-fx-only .dzb-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
}
/* Kart vuruş / hasar animasyonu (sprite yok) */
.dzb-hcard.is-windup {
  animation: dzbHcardWind 0.22s ease-out forwards;
}
.dzb-hcard.is-strike {
  animation: dzbHcardStrike 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
  z-index: 6;
}
.dzb-hcard.is-recover {
  animation: dzbHcardRecover 0.2s ease-out forwards;
}
.dzb-hcard.is-hit {
  animation: dzbHcardHit 0.32s ease-out;
}
.dzb-hcard.is-hit-crit {
  animation: dzbHcardHitCrit 0.42s ease-out;
}
.dzb-hcard.is-flash-white .dzb-hcard-av-img {
  animation: dzbFlashWhite 0.22s ease-out;
}
.dzb-hcard.is-dying,
.dzb-hcard.is-down {
  opacity: 0.42;
  filter: grayscale(0.75) brightness(0.7);
  transition: opacity 0.35s ease, filter 0.35s ease;
}
@keyframes dzbHcardWind {
  to { transform: scale(0.98); filter: brightness(1.06); }
}
@keyframes dzbHcardStrike {
  0% { transform: scale(0.98); }
  40% { transform: scale(1.03) translateY(-2px); filter: brightness(1.15); }
  100% { transform: scale(1.01); }
}
@keyframes dzbHcardRecover {
  to { transform: none; filter: none; }
}
@keyframes dzbHcardHit {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(6px); }
  55% { transform: translateX(-4px); }
}
@keyframes dzbHcardHitCrit {
  0%, 100% { transform: translateX(0) scale(1); }
  20% { transform: translateX(8px) scale(0.98); }
  45% { transform: translateX(-6px) scale(1.02); }
}
.dzb-log {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin: 0 10px 6px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8f4ea, #ebe3d4);
  border: 3px solid #2a3344;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  color: #1a2230;
  text-shadow: none;
}
.dzb-log.hidden { display: none !important; }

/* Skill slotları — kahraman kartının hemen altında */
.dzb-skills {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  max-width: 400px;
  width: calc(100% - 28px);
  margin: 2px auto 0;
}
.dzb.is-hud-cards .dzb-skills {
  max-width: 400px;
}
.dzb.is-hud-cards .dzb-battle-col {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.dzb-skill {
  touch-action: manipulation;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(246, 196, 69, 0.55);
  background:
    linear-gradient(180deg, rgba(30, 44, 68, 0.85), rgba(12, 20, 36, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 0;
  overflow: hidden;
}
.dzb-skill.is-filled {
  position: relative;
  border-color: rgba(246, 196, 69, 0.75);
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dzb-skill.is-filled:not(.is-cd):not(:disabled):active {
  transform: scale(0.96);
}
.dzb-skill.is-filled:disabled {
  cursor: default;
}
.dzb-skill-art,
.dzb-skill img.dzb-skill-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dzb-skill-lv {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
}
.dzb-skill.is-empty {
  opacity: 0.72;
  background-image:
    linear-gradient(135deg, transparent 46%, rgba(246, 196, 69, 0.18) 50%, transparent 54%),
    linear-gradient(180deg, rgba(30, 44, 68, 0.85), rgba(12, 20, 36, 0.9));
}

/* Kazanılan ödüller şeridi */
.dzb-loot {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.dzb-loot-title {
  display: block;
  margin-bottom: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px #000;
}
.dzb-loot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.dzb-loot-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 16, 30, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
}
.dzb-loot-slot.is-empty {
  background: rgba(8, 16, 30, 0.45);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}
.dzb-loot-ico {
  width: 28px;
  height: 28px;
  max-width: none;
  object-fit: contain;
}
.dzb-loot-slot > b {
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Sonuç: sahne kararsın, panel önde ve opak */
.dzb.is-result .dzb-top,
.dzb.is-result .dzb-arena,
.dzb.is-result .dzb-skills {
  opacity: 0.35;
  pointer-events: none;
  filter: blur(0.6px);
}
.dzb.is-result .dzb-fx { display: none; }
.dzb-end-rew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 2px 0 4px;
}
.dzb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dzb-chip.is-gold {
  border-color: rgba(246, 196, 69, 0.4);
  background: rgba(60, 42, 8, 0.45);
}
.dzb-chip.is-xp {
  border-color: rgba(154, 208, 255, 0.35);
  background: rgba(20, 40, 70, 0.5);
}
.dzb-chip.is-gem {
  border-color: rgba(120, 200, 255, 0.45);
  background: rgba(16, 48, 78, 0.55);
}
.dzb-chip.is-boss {
  border-color: rgba(246, 196, 69, 0.55);
  background: rgba(72, 48, 8, 0.55);
}
.dzb-chip.is-mat {
  border-color: rgba(180, 160, 120, 0.35);
  background: rgba(40, 32, 20, 0.5);
}
.dzb-chip-ico {
  width: 22px;
  height: 22px;
  max-width: none;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.dzb-chip > b {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dzb-chip > em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dzb-end {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 360px;
  margin: 0 auto;
  padding: 28px 16px 14px;
  border-radius: 18px;
  background: #0c1830;
  border: 1.5px solid rgba(246, 196, 69, 0.5);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: dzbEndIn 0.35s ease-out;
  isolation: isolate;
}
.dzb-end.is-win {
  border-color: rgba(159, 232, 112, 0.55);
  background: linear-gradient(180deg, #12281c 0%, #0c1830 42%);
}
.dzb-end.is-lose {
  border-color: rgba(228, 84, 74, 0.5);
  background: linear-gradient(180deg, #2a1418 0%, #0c1830 42%);
}
.dzb-end.hidden { display: none; }
@keyframes dzbEndIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dzb-end-badge {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #152a46;
  border: 2px solid rgba(246, 196, 69, 0.65);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.dzb-end.is-win .dzb-end-badge {
  border-color: rgba(159, 232, 112, 0.7);
  background: #163022;
}
.dzb-end.is-lose .dzb-end-badge {
  border-color: rgba(228, 84, 74, 0.65);
  background: #2a1618;
}
.dzb-end-ico {
  width: 36px;
  height: 36px;
  max-width: none;
  object-fit: contain;
}
.dzb-end-kicker {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ad0ff;
  text-shadow: none;
}
.dzb-end > strong {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.dzb-end > strong.is-win { color: #9fe870; }
.dzb-end > strong.is-lose { color: #ff8e82; }
.dzb-end > strong.is-abort { color: #f0c14a; }
.dzb-end.is-abort {
  border-color: rgba(240, 193, 74, 0.35);
}
.dzb-end-rec {
  margin: 0;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  color: #f6c445;
}
.dzb-end-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.dzb-end .dz-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  position: relative;
  z-index: 1;
  margin-top: 0;
}
.dz-btn-home {
  color: var(--cream, #f7f1e4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.dz-btn-home:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}
.dz-btn-home.hidden {
  display: none !important;
}

@media (max-height: 640px) {
  .dzb-sprite {
    width: min(30vw, 112px);
    height: min(36vw, 132px);
  }
  .dzb-unit.is-boss .dzb-sprite {
    width: min(38vw, 148px);
    max-width: min(38vw, 148px);
    height: min(48vw, 190px);
  }
  .dzb-top-mid strong { font-size: 15px; }
  .dzb-dmg > b { font-size: 24px; }
  .dzb-hcard { grid-template-columns: 64px 1fr; gap: 8px; padding: 8px 10px; }
  .dzb-hcard-av { width: 64px; height: 64px; }
  .dzb-hcard .dzb-dmg > b { font-size: clamp(24px, 6.5vw, 30px); }
  .dzb-skills { max-width: 280px; gap: 6px; }
}

/* —— Saga haritası (mobil) —— */
.dz.is-saga {
  background: #0a1624;
}
.dz-top.is-saga-top {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px;
  background: #0a1628;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dz-top.is-saga-top .dz-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.dz-top-mid {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.dz-top.is-saga-top h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
}
.dz-theme-name {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.55);
  line-height: 1;
}
.dz-top-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.dz-chip-buff {
  background: rgba(240, 193, 74, 0.16);
  border-color: rgba(240, 193, 74, 0.35);
  color: #f0c14a;
}
.dz-chip-buff em {
  color: rgba(240, 193, 74, 0.85);
}
.dz-chip-buff.is-def {
  background: rgba(110, 168, 255, 0.16);
  border-color: rgba(110, 168, 255, 0.35);
  color: #8ec0ff;
}
.dz-chip-buff.is-def em {
  color: rgba(142, 192, 255, 0.9);
}
.dz-chip-buff.is-crit {
  background: rgba(255, 120, 90, 0.16);
  border-color: rgba(255, 120, 90, 0.4);
  color: #ff9a78;
}
.dz-chip-buff.is-crit em {
  color: rgba(255, 154, 120, 0.9);
}
.dz-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dz-chip-ico {
  width: 16px;
  height: 16px;
  color: #7eb8ff;
  display: grid;
  place-items: center;
}
.dz-chip-ico svg { width: 12px; height: 12px; }
.dz-chip strong {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.dz-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.dz-chip-stars {
  background: transparent;
  border: none;
  padding: 0 2px;
  gap: 3px;
}
.dz-chip-stars strong {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.dz-chip-stars > i {
  width: 12px;
  height: 12px;
  color: #ffe56a;
  display: grid;
  place-items: center;
}
.dz-chip-stars > i svg { width: 12px; height: 12px; }
.dz-star-chest-img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Zindan bilgi modalı */
.dz-info {
  text-align: left;
  margin: 0 0 4px;
}
.dz-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dz-info-list > li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dz-info-list > li > strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6c445;
}
.dz-info-list > li > span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(247, 241, 228, 0.78);
}
.dz-info-list > li > span b {
  color: #fff;
  font-weight: 800;
}

/* —— Zindan bölüm kartları (Dünya Bossu kart düzeni) —— */
.dzc {
  --cream: #f7f1e4;
  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;
}
.dzc button { -webkit-tap-highlight-color: transparent; }
.dzc svg { display: block; flex-shrink: 0; }
.dzc-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);
}
.dzc-top h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 5.4vw, 24px);
  font-weight: 900;
  color: #fff;
}
.dzc-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);
}
.dzc-icon-btn svg { width: 22px; height: 22px; }
.dzc-icon-btn:active { transform: scale(0.95); }
.dzc-strip {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  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);
}
.dzc-strip b { color: #fff; font-weight: 900; }
.dzc-boss-clock {
  margin-left: auto;
  font-size: 11px;
  color: rgba(247, 241, 228, 0.62);
  white-space: nowrap;
}
.dzc-boss-clock b.is-on { color: #3ddc6e; }
.dzc-boss-clock b.is-off { color: #e4544a; }
.dzc-boss-clock em {
  font-style: normal;
  color: rgba(247, 241, 228, 0.5);
}
.dzc-energy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dzc-energy i {
  width: 14px;
  height: 14px;
  color: #7eb8ff;
  display: grid;
  place-items: center;
}
.dzc-energy i svg { width: 12px; height: 12px; }
.dzc-energy em {
  font-style: normal;
  font-size: 11px;
  color: rgba(247, 241, 228, 0.5);
}
.dzc-ofarm {
  font-size: 11px;
  font-weight: 800;
  color: #7CFF9A;
  white-space: nowrap;
}
.of-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.of-hero .of-kicker {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #7CFF9A;
  margin-bottom: 4px;
}
.of-hero h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.of-hero p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.72);
}
.of-vip {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #f6c445;
}
.of-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.of-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  max-width: 88px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: rgba(12, 24, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.of-chip-art,
.of-chip img.of-chip-art,
.of-chip .art-img.of-chip-art {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.of-chip b {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.of-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
  line-height: 1.15;
  text-align: center;
}
.of-chip.is-gold b { color: #f6c445; }
.of-chip.is-gem b { color: #7eb8ff; }
.of-claim {
  width: 100%;
  margin-top: 4px;
}
.dzc-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px));
}
.dzc-card {
  position: relative;
  flex: 0 0 auto;
  /* Yaratık tam sığsın — alt/üst kesilmesin */
  min-height: clamp(148px, 36vw, 172px);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.42);
  background: #102038;
}
.dzc-card.is-rec { border-color: rgba(246, 196, 69, 0.5); }
.dzc-card.is-boss-ch {
  border-color: rgba(228, 84, 74, 0.65);
  box-shadow: 0 6px 18px rgba(180, 40, 30, 0.35), 0 0 0 1px rgba(246, 196, 69, 0.2) inset;
}
.dzc-card.is-boss-ch.is-rec {
  border-color: rgba(246, 196, 69, 0.7);
}
/* Boss ikonu — varsayılan sol üst (şeffaf PNG) */
.dzc-boss-badge {
  position: absolute;
  top: 4px;
  bottom: auto;
  left: 4px;
  z-index: 4;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: transparent !important;
  border: none;
  box-shadow: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
/* Bölüm 10 — kafaya binmesin, sol alt */
.dzc-boss-badge.is-bl {
  top: auto;
  bottom: 6px;
  left: 6px;
}
.dzc-boss-tag {
  display: none;
}
.dzc-card-mob.is-boss {
  width: 46%;
  max-width: 46%;
  filter: drop-shadow(0 6px 14px rgba(180, 40, 30, 0.45));
}
.dz-slot.is-piece {
  border-color: rgba(155, 107, 255, 0.45);
}
.dzc-card.is-locked .dzc-card-bg {
  filter: saturate(0.55) brightness(0.72) contrast(1.04);
}
/* Mob silüeti kilitte de okunaklı kalsın — fazla karartma yok */
.dzc-card.is-locked .dzc-card-mob {
  filter: saturate(0.85) brightness(0.92) contrast(1.08);
}
.dzc-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: saturate(1.08) brightness(0.92) contrast(1.05);
}
.dzc-card-mob {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  /* Tam görünür — taşırma/kesme yok */
  width: 46%;
  max-width: 46%;
  height: auto;
  max-height: 100%;
  padding: 4px 0 2px 2px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
  image-rendering: auto;
}
.dzc-card-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Mob ~%46 — sağ UI net okunur */
  background:
    linear-gradient(90deg, transparent 0%, transparent 32%, rgba(4, 12, 24, 0.28) 42%, rgba(4, 12, 24, 0.78) 56%, rgba(4, 12, 24, 0.9) 100%),
    linear-gradient(180deg, rgba(4, 12, 24, 0.06) 0%, transparent 48%, rgba(4, 12, 24, 0.22) 100%);
}
.dzc-card-fg {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: inherit;
  min-width: 0;
  /* Mob tam görünür — UI sağda */
  padding: 6px 7px 6px 44%;
  box-sizing: border-box;
  overflow: hidden;
}
.dzc-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  overflow: hidden;
}
.dzc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.dzc-head strong {
  font-size: clamp(12px, 3.2vw, 14px);
  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);
  white-space: nowrap;
}
.dzc-head em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dzc-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dzc-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b429, #ffe56a);
}
.dzc-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.85);
}
.dzc-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dzc-stars em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.dzc-stages {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 228, 0.55);
  text-transform: uppercase;
}
.dzc-need {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(4, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dzc-need > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.58);
  white-space: nowrap;
}
.dzc-need > b {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.dzc-need > i {
  margin-left: auto;
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  white-space: nowrap;
}
.dzc-need.is-easy > b { color: #6dff9a; }
.dzc-need.is-fair > b { color: #9ad0ff; }
.dzc-need.is-hard > b { color: #ffe56a; }
.dzc-need.is-risky > b { color: #ffb070; }
.dzc-need.is-fatal > b { color: #ff8e82; }
.dzc-need.is-easy > i { background: rgba(16, 80, 40, 0.75); color: #6dff9a; border-color: rgba(109, 255, 154, 0.35); }
.dzc-need.is-fair > i { background: rgba(20, 60, 100, 0.75); color: #9ad0ff; border-color: rgba(154, 208, 255, 0.35); }
.dzc-need.is-hard > i { background: rgba(80, 55, 8, 0.8); color: #ffe56a; border-color: rgba(246, 196, 69, 0.4); }
.dzc-need.is-risky > i { background: rgba(90, 40, 10, 0.8); color: #ffb070; border-color: rgba(255, 176, 112, 0.4); }
.dzc-need.is-fatal > i { background: rgba(90, 20, 16, 0.8); color: #ff8e82; border-color: rgba(255, 142, 130, 0.4); }
.dzc-card.is-locked .dzc-need {
  opacity: 0.72;
}
.dzc-diff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 0;
}
.dzc-diff.is-boss-only {
  grid-template-columns: 1fr;
}
.dzc-diff.is-boss-only .dzc-diff-btn {
  cursor: default;
}
.dzc-diff-btn {
  min-height: 22px;
  padding: 0 2px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 18, 36, 0.72);
  color: rgba(247, 241, 228, 0.72);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}
.dzc-diff-ico {
  width: 12px !important;
  height: 12px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}
.dzc-diff-btn.is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--diff) 70%, #fff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--diff) 88%, #fff), var(--diff));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--diff) 42%, #000);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}
.dzc-diff-btn.is-easy.is-on { color: #063018; text-shadow: none; }
.dzc-diff-btn.is-locked {
  opacity: 0.5;
  filter: grayscale(0.35);
  cursor: not-allowed;
  box-shadow: none;
}
.dzc-diff-lock {
  width: 10px;
  height: 10px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}
.dzc-diff-lock svg { width: 10px; height: 10px; }
.dzc-diff-btn:not(.is-locked):active { transform: scale(0.97); }
.dzc-rew {
  margin-top: 0;
  padding: 3px 4px 4px;
  border-radius: 8px;
  background: rgba(4, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dzc-rew.is-chest {
  padding: 5px 6px 6px;
  border-color: color-mix(in srgb, var(--diff, #7ad7ff) 35%, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--diff, #7ad7ff) 18%, transparent), transparent 55%),
    rgba(4, 12, 24, 0.62);
}
.dzc-rew.is-locked {
  opacity: 0.55;
  min-height: 22px;
  display: flex;
  align-items: center;
}
.dzc-rew-title {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.62);
}
.dzc-chest {
  --diff: #7ad7ff;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 8px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1.5px solid color-mix(in srgb, var(--diff) 55%, #fff);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--diff) 28%, #1a2a44), rgba(8, 16, 30, 0.92));
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--diff) 35%, #000),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.dzc-chest.is-easy { --diff: #3ddc6e; }
.dzc-chest.is-hard { --diff: #e4544a; }
.dzc-chest.is-nightmare { --diff: #9b6bff; }
.dzc-chest:active { transform: scale(0.985); }
.dzc-chest-art {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.dzc-chest-ico {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  position: relative;
  z-index: 1;
}
.dzc-chest-glow {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--diff) 70%, #fff), transparent 70%);
  opacity: 0.55;
  filter: blur(4px);
  animation: dzcChestPulse 2.2s ease-in-out infinite;
}
@keyframes dzcChestPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
.dzc-chest-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dzc-chest-meta strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.dzc-chest-meta em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: color-mix(in srgb, var(--diff) 55%, #fff);
  opacity: 0.9;
}
.dzc-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.dzc-slots .dz-slot {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 42px;
  padding: 2px 1px 3px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
.dzc-slots .dz-slot-badge {
  font-size: 8px;
  min-height: 10px;
}
.dzc-slots .dz-slot-art {
  width: 22px;
  height: 22px;
}
.dzc-slots .dz-slot-name {
  font-size: 7px;
  line-height: 1.05;
  max-width: 100%;
}
.dzc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 1px;
}
.dzc-hint {
  font-size: 9px;
  font-weight: 800;
  color: rgba(247, 241, 228, 0.55);
}
.dzc-btn {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1.5px solid rgba(94, 180, 255, 0.45);
  background: linear-gradient(180deg, #3a8fff, #1a5fd4);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 0 rgba(0, 40, 100, 0.45);
  cursor: pointer;
}
.dzc-btn.is-hot {
  border-color: rgba(255, 210, 80, 0.55);
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  color: #2a1a04;
  box-shadow: 0 2px 0 rgba(120, 70, 0, 0.45);
}
.dzc-btn.is-off {
  opacity: 0.7;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 241, 228, 0.65);
  box-shadow: none;
}
.dzc-btn.is-off svg { width: 12px; height: 12px; }
.dzc-btn:not(.is-off):active { transform: scale(0.97); }
.dzc-card.is-locked { cursor: default; }
.dzc-card:not(.is-locked) { cursor: pointer; }

.dz-diff.is-saga-diff {
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px 8px;
  background: #0a1628;
}
.dz-diff-btn {
  min-height: 36px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: #12243c;
  color: rgba(247, 241, 228, 0.7);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.dz-diff-ico {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}
.dz-diff-btn.is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--diff) 70%, #fff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--diff) 90%, #fff), var(--diff));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--diff) 45%, #000);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.dz-diff-btn.is-easy.is-on { color: #063018; text-shadow: none; }
.dz-diff-btn.is-locked {
  opacity: 0.55;
  filter: grayscale(0.35);
  cursor: not-allowed;
  box-shadow: none;
}
.dz-diff-btn.is-locked.is-on {
  /* kilitliyken seçili kalmasın — ensureDungeonState düşürür */
  opacity: 0.55;
}
.dz-diff-lock {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}
.dz-diff-lock svg { width: 12px; height: 12px; }

.dz-body.is-map {
  position: relative;
  z-index: 2;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #102038;
}

.dz-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #1a2e22;
}
/* Full-bleed saga stage — KİLİTLİ (aspect kilidi / kenar şerit yok). Yeni chapter aynı stage. */
.dz-map-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dz-map-stage .dz-map-bg,
.dz-map-stage > img.dz-map-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: fill !important;
  pointer-events: none;
}
.dz-path {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.dz-node {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  color: #fff;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}
.dz-node-orb {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0 14%, transparent 42%),
    linear-gradient(165deg, #9eb0cc 0%, #5a6f90 45%, #2c3f5c 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 0 #182538,
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.28);
}
.dz-node-orb::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.dz-node-orb > b {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}
.dz-node.is-done .dz-node-orb {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7) 0 16%, transparent 44%),
    linear-gradient(165deg, #ffe98a 0%, #ffd24a 42%, #ef9a12 100%);
  border-color: #fff3c4;
  box-shadow:
    0 4px 0 #a86e08,
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(140, 70, 0, 0.25);
  color: #4a2c08;
}
.dz-node.is-current .dz-node-orb {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75) 0 16%, transparent 44%),
    linear-gradient(165deg, #9dffb8 0%, #3de472 40%, #14a848 100%);
  border-color: #e8ffe8;
  box-shadow:
    0 0 0 5px rgba(80, 230, 130, 0.28),
    0 4px 0 #0f7a38,
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 80, 30, 0.22);
  color: #063018;
  animation: dzNodePulse 1.6s ease-in-out infinite;
}
.dz-node .dz-stars,
.dz-node .dz-node-lock {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.dz-node.is-boss {
  width: 34px;
  height: 34px;
}
.dz-node.is-boss .dz-node-orb {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 170, 150, 0.85);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45) 0 14%, transparent 42%),
    linear-gradient(165deg, #c07090 0%, #7a3458 50%, #3a1830 100%);
}
.dz-node.is-boss.is-done .dz-node-orb {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7) 0 16%, transparent 44%),
    linear-gradient(165deg, #ffe98a 0%, #ffd24a 42%, #ef9a12 100%);
  border-color: #fff3c4;
  color: #4a2c08;
}
.dz-node.is-boss.is-current .dz-node-orb {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75) 0 16%, transparent 44%),
    linear-gradient(165deg, #9dffb8 0%, #3de472 40%, #14a848 100%);
  color: #063018;
}
.dz-node.is-locked {
  opacity: 0.92;
}
.dz-node.is-locked .dz-node-orb {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28) 0 14%, transparent 42%),
    linear-gradient(165deg, #7a8798 0%, #4a5566 48%, #2a3140 100%);
  border-color: rgba(220, 230, 245, 0.35);
  box-shadow:
    0 5px 0 #151c28,
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.72);
}
.dz-node-lock {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  margin-top: -1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.dz-node-lock svg { width: 15px; height: 15px; }
.dz-node:active:not(:disabled) .dz-node-orb {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #1a2740, inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
@keyframes dzNodePulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(80, 230, 130, 0.22),
      0 4px 0 #0f7a38,
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -3px 6px rgba(0, 80, 30, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(80, 230, 130, 0.3),
      0 4px 0 #0f7a38,
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -3px 6px rgba(0, 80, 30, 0.22);
  }
}
.dz-stars {
  display: inline-flex;
  gap: 1px;
  height: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.dz-stars > i {
  width: 11px;
  height: 11px;
  color: rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
}
.dz-stars > i svg { width: 11px; height: 11px; }
.dz-stars > i.is-on { color: #ffe56a; filter: drop-shadow(0 0 3px rgba(255, 210, 60, 0.55)); }
.dz-stars.is-dim > i { color: rgba(255, 255, 255, 0.18); }
.dzb-end-stars {
  display: flex;
  justify-content: center;
}
.dzb-end-stars .dz-stars > i {
  width: 20px;
  height: 20px;
}
.dzb-end-stars .dz-stars > i svg { width: 20px; height: 20px; }

.dz-dock {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #0a1628;
  border-top: 1px solid rgba(120, 170, 230, 0.18);
  z-index: 3;
}
.dz-dock-stage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 2px 0 2px;
}
.dz-stage-nav {
  width: 40px;
  height: 36px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: #12243c;
  color: #fff;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dz-stage-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.dz-stage-nav:not(:disabled):active { transform: scale(0.96); }
.dz-stage-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.dz-stage-mid strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}
.dz-stage-mid .dz-stars {
  transform: scale(0.92);
}
.dz-dock-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.dz-dock-rew-title {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #b7dcff;
}
.dz-slots {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
}
.dz-slot {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 66px;
  padding: 14px 3px 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2f4a 0%, #12243c 100%);
  border: 1px solid rgba(150, 190, 240, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  overflow: visible;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}
.dz-slot.is-boss,
.dz-slot.is-chest {
  border-color: rgba(246, 196, 69, 0.5);
  background: linear-gradient(180deg, #2a2414 0%, #1a2030 100%);
}
.dz-slot.is-click {
  cursor: pointer;
}
.dz-slot.is-click:active {
  transform: scale(0.96);
}
.dz-slot-art {
  display: grid;
  place-items: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.dz-slot-ico {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.dz-slot-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  z-index: 2;
  min-width: 20px;
  max-width: 52px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #07111f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.dz-slot.is-gold .dz-slot-badge { color: #ffe56a; border-color: rgba(246, 196, 69, 0.45); }
.dz-slot.is-gems .dz-slot-badge { color: #8fd0ff; border-color: rgba(120, 200, 255, 0.4); }
.dz-slot.is-chest .dz-slot-badge,
.dz-slot.is-boss .dz-slot-badge {
  color: #3a2206;
  background: linear-gradient(180deg, #ffe56a, #f0a820);
  border-color: rgba(255, 220, 120, 0.7);
}
.dz-slot-name {
  margin: 0;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  color: rgba(230, 240, 255, 0.95);
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  max-width: 100%;
  overflow: visible;
}
/* Sandık ödül oranları — KABUS ÖDÜL tarzı yatay slotlar */
.dz-odds {
  --diff: #9b6bff;
  display: grid;
  gap: 12px;
  padding: 2px 0 0;
}
.dz-odds.is-easy { --diff: #3ddc6e; }
.dz-odds.is-hard { --diff: #e4544a; }
.dz-odds.is-nightmare { --diff: #9b6bff; }
.dz-odds-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.dz-odds-chest {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--diff) 55%, transparent));
}
.dz-odds-titles { min-width: 0; }
.dz-odds-kicker {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--diff) 70%, #fff);
}
.dz-odds-titles h2 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.dz-odds-titles p {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.62);
}
.dz-odds-row {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border-radius: 14px;
  background: rgba(4, 12, 24, 0.72);
  border: 1px solid color-mix(in srgb, var(--diff) 35%, rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dz-odds-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 78px;
  padding: 14px 3px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
.dz-odds-slot.is-sure {
  border-color: color-mix(in srgb, var(--diff) 45%, rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--diff) 22%, transparent);
}
.dz-odds-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  z-index: 2;
  min-width: 22px;
  max-width: 56px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #07111f;
  border: 1px solid rgba(255, 210, 80, 0.45);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffe56a;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.dz-odds-art {
  display: grid;
  place-items: center;
  width: 100%;
  flex: 1;
}
.dz-odds-ico {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.dz-odds-name {
  margin: 0;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  color: rgba(240, 246, 255, 0.95);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-odds-pct {
  font-size: 11px;
  font-weight: 900;
  color: #ffe56a;
  text-shadow: 0 0 8px rgba(255, 210, 80, 0.35);
}
.dz-odds-slot.is-sure .dz-odds-pct {
  color: #7dffb0;
  text-shadow: 0 0 8px rgba(80, 255, 160, 0.3);
}
.dz-odds-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 241, 228, 0.55);
}
@media (max-width: 360px) {
  .dz-odds-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.dz-chest-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dz-chest-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(18, 36, 60, 0.85);
  border: 1px solid rgba(160, 200, 255, 0.14);
}
.dz-chest-row.is-empty {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}
.dz-chest-ico {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
}
.dz-chest-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.dz-chest-meta strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}
.dz-chest-meta span {
  font-size: 12px;
  font-weight: 800;
  color: #ffe56a;
}
.dz-enter {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  min-width: 118px;
  min-height: 68px;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255, 236, 170, 0.65);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    linear-gradient(180deg, #ffe98a 0%, #ffd24a 38%, #f0a820 72%, #d8890e 100%);
  color: #3a2206;
  font-family: var(--font);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 4px 0 #9a6208,
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(160, 90, 0, 0.22);
  cursor: pointer;
}
.dz-dock .dz-hint {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}
.dz-enter-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.38) 48%,
    transparent 56%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: dzEnterShine 2.8s ease-in-out infinite;
}
.dz-enter-ico {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #4a2a08;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 180, 0.45));
}
.dz-enter-ico svg { width: 22px; height: 22px; }
.dz-enter-txt {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 240, 180, 0.45);
  white-space: nowrap;
}
.dz-enter:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #9a6208,
    0 4px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.dz-enter:disabled {
  opacity: 0.42;
  filter: grayscale(0.35);
  cursor: not-allowed;
  animation: none;
}
.dz-enter:disabled .dz-enter-shine { animation: none; opacity: 0; }
@keyframes dzEnterShine {
  0%, 55% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .dz-enter-shine { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-node.is-current .dz-node-orb { animation: none; }
}

/* ——— Zindan bölüm kartları · v2 (zorluk renkli çerçeve, zemin gölgesi, okunaklı tipografi) ——— */
.dzc-list { gap: 12px; padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)); }
.dzc-card {
  --diff: #3ddc6e;
  min-height: clamp(186px, 48vw, 208px);
  border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--diff) 48%, rgba(255, 255, 255, 0.14));
  background: #0b1626;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 18px color-mix(in srgb, var(--diff) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dzc-card:not(.is-locked):active { transform: scale(0.992); }
.dzc-card.is-boss-ch { border-color: rgba(246, 196, 69, 0.75); }
.dzc-card-bg { filter: saturate(1.1) brightness(0.98) contrast(1.06); }

/* yaratığın altında yumuşak zemin gölgesi */
.dzc-card::before {
  content: '';
  position: absolute;
  left: 2%;
  bottom: 9px;
  width: 46%;
  height: 16px;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
/* yaratık: sabit kutu + alta hizalı → her boy/oranda ayağı zemine oturur */
.dzc-card-mob {
  left: 2%;
  top: 12px;
  bottom: 17px;
  width: 46%;
  max-width: 46%;
  height: calc(100% - 29px);
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}
.dzc-card-mob.is-boss { width: 46%; max-width: 46%; }
.dzc-card-veil {
  background:
    radial-gradient(ellipse at 24% 78%, color-mix(in srgb, var(--diff) 26%, transparent), transparent 56%),
    linear-gradient(90deg, transparent 0%, transparent 30%, rgba(5, 12, 24, 0.55) 44%, rgba(5, 12, 24, 0.88) 58%, rgba(5, 12, 24, 0.94) 100%),
    linear-gradient(180deg, rgba(4, 12, 24, 0.12) 0%, transparent 40%, rgba(4, 12, 24, 0.34) 100%);
}
.dzc-card-fg { padding: 10px 11px 10px 47%; }
.dzc-body { gap: 5px; justify-content: space-between; }

/* başlık: küçük altın etiket + büyük bölüm adı */
.dzc-head { flex-direction: column; align-items: flex-start; gap: 1px; }
.dzc-head strong {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd86a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.dzc-head em {
  max-width: 100%;
  font-size: clamp(15px, 4.4vw, 18px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.dzc-meta-line { margin-top: -2px; }
.dzc-stages { font-size: 10px; letter-spacing: 0.06em; color: color-mix(in srgb, var(--diff) 60%, #fff); opacity: 0.95; }

/* gerekli güç: tek şerit */
.dzc-need {
  gap: 5px;
  padding: 4px 6px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(3, 9, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.dzc-need > span { font-size: 8px; letter-spacing: 0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.dzc-need > b { font-size: 12px; flex: 0 0 auto; }
.dzc-need > i { font-size: 8px; padding: 2px 6px; flex: 0 0 auto; }

/* zorluk: tek parça segment */
.dzc-diff {
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  background: rgba(3, 9, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dzc-diff-btn {
  min-height: 28px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  font-size: 10px;
  gap: 4px;
  color: rgba(247, 241, 228, 0.6);
  transition: background 0.18s ease, color 0.18s ease;
}
.dzc-diff-ico { width: 14px !important; height: 14px !important; }
.dzc-diff-btn.is-on {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--diff) 90%, #fff 10%), color-mix(in srgb, var(--diff) 78%, #000));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--diff) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.dzc-diff-btn.is-easy.is-on { color: #052a14; }

/* ödül: tek satır, tekrar eden başlık yok */
.dzc-rew.is-chest { padding: 0; background: none; border: 0; box-shadow: none; }
.dzc-rew.is-chest .dzc-rew-title { display: none; }
.dzc-chest {
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 5px 10px 5px 6px;
  border-radius: 12px;
  border-width: 1px;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--diff) 30%, #12203a), rgba(7, 14, 28, 0.94));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.dzc-chest-art, .dzc-chest-ico { width: 42px !important; height: 42px !important; }
.dzc-chest-meta strong { font-size: 13px; }
.dzc-chest-meta em { font-size: 10px; }
.dzc-rew.is-locked { padding: 6px 8px; border-radius: 10px; opacity: 0.7; }

/* alt şerit: ipucu + Gir */
.dzc-meta { margin-top: 0; gap: 8px; }
.dzc-hint { font-size: 10px; color: rgba(247, 241, 228, 0.6); }
.dzc-btn {
  min-height: 34px;
  min-width: 78px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 14px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #55a8ff, #1d63d8);
  box-shadow: 0 3px 0 rgba(0, 38, 98, 0.6), 0 6px 14px rgba(20, 90, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.dzc-btn.is-hot {
  border-color: rgba(255, 244, 190, 0.7);
  background: linear-gradient(180deg, #ffe56a, #f0a000);
  box-shadow: 0 3px 0 rgba(120, 70, 0, 0.6), 0 6px 14px rgba(240, 160, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.dzc-btn.is-off { min-height: 30px; font-size: 11px; padding: 0 12px; box-shadow: none; }

/* Yaratık skill başlığı (Zor / Kabus): boss başlığından küçük, üst kenara yakın */
.dzb-foe-banner.is-tier { top: 22%; padding: 6px 22px 8px; }
.dzb-foe-banner.is-tier strong { font-size: 19px; }
.dzb-foe-banner.is-tier small { font-size: 9px; }
.dzb-foe-banner.is-tier.is-ult strong { font-size: 22px; }


/* ═══════ Zafer / Yenilgi banner (Spine → sprite sheet, saf CSS oynatma) ═══════ */
.rb {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 360 / 319;
  flex: 0 0 auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}
.rb[hidden] { display: none; }
.rb-spr {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.rb.is-win .rb-spr {
  background-image: url('../assets/ui/result/win-sheet.webp?v=2');
  background-size: 800% 800%;
  animation: rbX 0.3333s steps(8, jump-none) 8 forwards, rbYwin 2.6667s steps(8, jump-none) forwards;
}
.rb.is-lose { aspect-ratio: 360 / 378; }
.rb.is-lose .rb-spr {
  background-image: url('../assets/ui/result/lose-sheet.webp?v=2');
  background-size: 800% 600%;
  animation: rbX 0.3333s steps(8, jump-none) 6 forwards, rbYlose 2s steps(6, jump-none) forwards;
}
@keyframes rbX { from { background-position-x: 0%; } to { background-position-x: 100%; } }
@keyframes rbYwin { from { background-position-y: 0%; } to { background-position-y: 100%; } }
@keyframes rbYlose { from { background-position-y: 0%; } to { background-position-y: 100%; } }

/* Savaş sonu kartında: banner kartın üstüne taşar, rozet ve yinelenen başlık gizlenir */
.dzb-end .dzb-end-badge { display: none; }
.dzb-end { padding-top: 6px; }
.dzb-end > .rb { width: min(100%, 264px); margin: -148px 0 -26px; z-index: 3; }
.dzb-end > .rb.is-lose { width: min(100%, 236px); margin: -162px 0 -14px; }
.dzb-end > .dzb-end-kicker { margin-top: 0; }
.dzb-end > strong[hidden] { display: none; }
.dzb-end > .rb ~ strong { font-size: 17px; }
@media (prefers-reduced-motion: reduce) {
  .rb.is-win .rb-spr { animation: none; background-position: 100% 100%; }
  .rb.is-lose .rb-spr { animation: none; background-position: 100% 100%; }
}

/* Modal (PvP arena / 1v1 sonucu) */
.modal-card .rb { margin: -34px auto -12px; width: min(78%, 250px); }
.modal-card .rb.is-lose { width: min(70%, 224px); margin-top: -30px; }
