@keyframes ll-runtime-skeleton-pulse {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

.ll-runtime-skeleton-text {
  display: inline-block;
  min-width: 4.8em;
  min-height: 1em;
  border-radius: 0.35em;
  color: transparent !important;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.82), rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.82));
  background-size: 220% 100%;
  animation: ll-runtime-skeleton-pulse 1.2s ease-in-out infinite;
}

.stats-dashboard [data-card-year],
.stats-dashboard [data-card-peak],
.pursuits-live-teleport [data-live-lifetime],
.pursuits-live-teleport [data-live-year],
.pursuits-live-teleport [data-live-active],
.pursuits-live-teleport [data-live-best-month],
.pursuits-live-teleport [data-live-last],
.pursuits-live-teleport [data-detail-lifetime],
.pursuits-live-teleport [data-detail-year],
.pursuits-live-teleport [data-detail-active],
.pursuits-live-teleport [data-detail-best-day],
.pursuits-live-teleport [data-detail-best-month],
.pursuits-live-teleport [data-detail-streak] {
  min-height: 1.15em;
}

@media (max-width: 900px) {
  .day-explorer [data-day-metrics],
  .day-explorer [data-day-context],
  .day-explorer [data-day-durations],
  .day-explorer [data-day-activities],
  .day-explorer [data-day-comparison],
  .day-explorer [data-day-week],
  .day-explorer [data-same-date-grid] {
    min-height: 180px;
  }

  .day-explorer [data-day-metrics] {
    min-height: 360px;
  }

  .day-explorer.ll-runtime-loading [data-day-metrics]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-context]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-durations]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-activities]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-comparison]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-week]:empty::before,
  .day-explorer.ll-runtime-loading [data-same-date-grid]:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background:
      linear-gradient(100deg, rgba(226, 232, 240, 0.72) 20%, rgba(248, 250, 252, 0.96) 40%, rgba(226, 232, 240, 0.72) 60%);
    background-size: 220% 100%;
    animation: ll-runtime-skeleton-pulse 1.2s ease-in-out infinite;
  }

  .snapshot-card__facts dd,
  .pursuits-live-card dd,
  .pursuits-live-facts strong,
  .pursuits-live-chart-summary span {
    min-height: 1.15em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-runtime-skeleton-text,
  .day-explorer.ll-runtime-loading [data-day-metrics]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-context]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-durations]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-activities]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-comparison]:empty::before,
  .day-explorer.ll-runtime-loading [data-day-week]:empty::before,
  .day-explorer.ll-runtime-loading [data-same-date-grid]:empty::before {
    animation: none;
  }
}
