/* Подключение шрифтов */
@font-face {
  font-family: 'Elegant Dragon';
  src: url('https://forumstatic.ru/files/001c/92/6e/53009.ttf?v=1') format('truetype');
}

@font-face {
  font-family: 'Angelic Bonques';
  src: url('https://forumstatic.ru/files/001c/92/6e/32193.ttf') format('truetype');
}

.fb-lz {
  display: inline-block;
  text-align: center;
}

/* Верхняя фраза */
.fb-lz-top {
  font-family: 'Angelic Bonques', sans-serif;
  font-size: 16px;
  color: #000;
  margin-bottom: 5px;
}

/* Контейнер ECG */
.ecg-wrap {
  position: relative;
  width: 100%;
  height: 20px;
padding-bottom: 5px; /* добавляем пространство вниз */
  overflow: visible;  /* чтобы линия и текст не обрезались */
}

/* Линия ECG */
.ecg-line {
  fill: none;
  stroke: #ff4d6d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 800; /* длина линии */
  stroke-dashoffset: 800;
  animation: heartbeatForward 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,77,109,1));
}

/* Нижний текст неон */
.ecg-text {
  position: absolute;
  top: 95%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Elegant Dragon', cursive;
  font-size: 22px;
  color: #000000;

  letter-spacing: 1px;
  pointer-events: none;

}

/* Анимация линии */
@keyframes heartbeatForward {
  0% { stroke-dashoffset: 800; }
  100% { stroke-dashoffset: -800; }
}
