/* Задняя панель boot: мини-метрики и sparkline-бары — декоративная аналитика */

.ds-boot-panel-metrics {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px 18px;
  pointer-events: none;
}

.ds-boot-panel-metrics__chart {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: end;
  gap: 8px;
}

.ds-boot-panel-metrics__label {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.03em;
}

.ds-boot-panel-metrics__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.ds-boot-panel-metrics__bar {
  flex: 1;
  min-width: 4px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.22);
  transform-origin: bottom center;
  will-change: transform, opacity;
  animation: ds-boot-panel-metrics-pulse 3.6s ease-in-out infinite;
}

.ds-boot-panel-metrics__bar:nth-child(1) {
  animation-delay: 0s;
}

.ds-boot-panel-metrics__bar:nth-child(2) {
  animation-delay: 0.4s;
}

.ds-boot-panel-metrics__bar:nth-child(3) {
  animation-delay: 0.8s;
}

.ds-boot-panel-metrics__bar:nth-child(4) {
  animation-delay: 1.2s;
}

.ds-boot-panel-metrics__bar:nth-child(5) {
  animation-delay: 1.6s;
}

.ds-boot-panel-metrics__value {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.38);
  text-align: right;
  transition: opacity 480ms var(--ds-ease);
}

@keyframes ds-boot-panel-metrics-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale3d(1, 0.72, 1);
  }
  50% {
    opacity: 0.9;
    transform: scale3d(1, 1, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-boot-panel-metrics__bar {
    animation: none;
    opacity: 0.65;
    will-change: auto;
  }
}
