.skeleton {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* on very narrow screens the table is wide and skeleton rows cover the whole
   viewport; reduce shimmer contrast so the effect feels contained to the
   shapes rather than the entire page */
@media (max-width: 768px) {
  .skeleton {
    background: rgba(255, 255, 255, 0.02);
  }

  .skeleton::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  }
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.1s linear infinite;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}


.sidebar-skeleton .server-item.skeleton {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.sidebar-skeleton .server-item.skeleton .server-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-skeleton .skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-skeleton .skeleton-subline {
  height: 10px;
  width: 40%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}


.detail-skeleton .skeleton-header {
  height: 28px;
  width: 60%;
  margin-bottom: 12px;
}

.detail-skeleton .skeleton-btn {
  width: 36px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-skeleton .skeleton-map {
  height: 320px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.detail-skeleton .skeleton-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-skeleton .skeleton-chat-line {
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-skeleton .skeleton-playerchip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-skeleton .skeleton-playerchip .avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  flex: 0 0 36px;
}

.detail-skeleton .skeleton-playerchip .name {
  height: 12px;
  width: 70%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-skeleton .skeleton-graph {
  height: 120px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}


.leaderboard-item.skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.leaderboard-item.skeleton .leaderboard-rank {
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-item.skeleton .leaderboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-item.skeleton .skeleton-line {
  background: rgba(255, 255, 255, 0.02);
  height: 14px;
  border-radius: 8px;
}


.players-table tr.skeleton td {
  background: transparent;
}

.players-table tr.skeleton .skeleton-line {
  background: rgba(255, 255, 255, 0.02);
  height: 14px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}