/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-tile {
  height: 56px;
  width: 100%;
}

.skeleton-text {
  height: 16px;
  width: 80%;
  margin: 8px 0;
}

.skeleton-avatar {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

/* Tile Hover Lift Effect */
.pick-tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pick-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* In-Progress Game Pulse - draws attention to live games */
.tile-in-progress,
.tile-winning,
.tile-losing {
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

/* Score Update Flash - notice when scores change */
.score-updated,
.pick-tile.updated {
  animation: flash-highlight 0.6s ease-out;
}

@keyframes flash-highlight {
  0% { background-color: #fff3cd; }
  100% { background-color: transparent; }
}

/* Button Press Feedback */
.btn {
  transition: transform 0.1s ease;
}

.btn:active {
  transform: scale(0.97);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
