/* ==========================================================================
   App skeletons — route loading, boot screen, ticker placeholder
   ========================================================================== */

@keyframes fa-sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fa-sk,
.circles-inbox-skeleton-row,
.hd-ticker-skel-item,
.fa-app-boot-bar-fill {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: fa-sk-shimmer 1.15s ease-in-out infinite;
}

.fa-sk-block {
  min-height: 80px;
  border-radius: 10px;
}

.fa-sk-block--sm {
  min-height: 48px;
}

.fa-sk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fa-sk-line {
  height: 12px;
  border-radius: 6px;
  width: 100%;
}

.fa-sk-line--lg { width: 72%; height: 16px; }
.fa-sk-line--md { width: 88%; }
.fa-sk-line--sm { width: 48%; }

.fa-sk-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fa-sk-flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fa-sk-score {
  width: 36px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fa-sk-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  flex-shrink: 0;
}

.fa-sk-btn {
  width: 96px;
  height: 36px;
  border-radius: 8px;
}

.fa-sk-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fa-sk-post {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fa-sk-post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fa-sk-match {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}

.fa-sk-match-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fa-sk-player {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.fa-sk-player-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fa-sk-player-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.fa-sk-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fa-sk-table-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fa-route-skeleton {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
}

.fa-route-skeleton--feed {
  max-width: 720px;
}

.fa-route-skeleton--circles-chat {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.fa-route-skeleton-bubble {
  height: 44px;
  max-width: 68%;
  border-radius: 14px;
}

.fa-route-skeleton-bubble--right {
  align-self: flex-end;
  max-width: 52%;
}

.fa-error-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fa-muted, rgba(255, 255, 255, 0.65));
  font-size: 14px;
}

/* Ticker skeleton (before global-ticker hydrates) */
.hd-ticker-skeleton {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0 8px;
}

.hd-ticker-skel-item {
  flex-shrink: 0;
  width: 120px;
  height: 14px;
  margin: 0 16px;
  border-radius: 4px;
}

/* Boot screen */
#fa-app-boot {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A1628;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

#fa-app-boot.fa-app-boot--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fa-app-boot-inner {
  text-align: center;
  padding: 24px;
  max-width: 320px;
}

.fa-app-boot-logo {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.fa-app-boot-logo .f { color: #00C2CB; }

.fa-app-boot-tag {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.fa-app-boot-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fa-app-boot-bar-fill {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
}

html[data-app-ready] #fa-app-boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
