.damage-chart {
  min-width: 0;
  padding: 20px 22px;
  color: #31455f;
}

.damage-chart h2 {
  margin-bottom: 18px;
  font-size: 16px;
}

.damage-chart-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 16px;
  border: 1px dashed #dbe4ef;
  border-radius: 8px;
  background: #f8fafd;
  color: #647a95;
  font-size: 13px;
  text-align: center;
}

.damage-chart-plot {
  position: relative;
  min-width: 0;
  cursor: crosshair;
}

.damage-chart-plot:focus-visible {
  outline: 2px solid #b97138;
  border-radius: 6px;
}

.damage-chart-plot svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.damage-chart-plot text {
  fill: #627894;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.damage-chart-grid { stroke: #e7edf4; }
.damage-chart-axis { fill: none; stroke: #b0bed0; }
.damage-chart-burst { stroke: #a5b5ca; stroke-dasharray: 4 4; }
.damage-chart-series { fill: none; stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.damage-chart-end,.damage-chart-cursor circle { stroke: white; stroke-width: 1.4; }
.damage-chart-cursor line { stroke: #425a76; stroke-width: 1; }

.damage-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e7edf4;
  font-size: 11px;
}

.damage-chart-legend li,.damage-chart-tooltip dt {
  display: flex;
  align-items: center;
  gap: 6px;
}

.damage-chart i {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--series);
}

.damage-chart i.damage-chart-burst-key {
  width: 1px;
  height: 11px;
  border-left: 1px dashed #7d91aa;
  border-radius: 0;
  margin: 0 3px;
}

.damage-chart-tooltip {
  position: absolute;
  z-index: 1;
  top: 7px;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  background: #fffffff5;
  box-shadow: 0 3px 12px #203c5419;
  pointer-events: none;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.damage-chart-tooltip dl { margin: 6px 0 0; }
.damage-chart-tooltip dl > div { display: flex; gap: 12px; justify-content: space-between; margin-top: 3px; }
.damage-chart-tooltip dd { margin: 0; white-space: nowrap; }
.damage-chart-tooltip-total { padding-top: 5px; border-top: 1px solid #e7edf4; }
.damage-chart [hidden] { display: none; }

@media (max-width: 600px) {
  .damage-chart { padding: 15px 12px; }
  .damage-chart h2 { margin-bottom: 12px; font-size: 14px; }
  .damage-chart-plot text { font-size: 10px; }
  .damage-chart-empty { min-height: 170px; }
}
