/* Ana sayfa — son kazananlar (yatay kart şeridi) */
.home-winners {
  width: 100%;
  min-width: 0;
}

.home-winners__title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.home-winners__marquee {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* mask-image + transform animasyonu birlikte tarayıcıda titreme yapabiliyor */
.home-winners__fade {
  pointer-events: none;
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: 2.5rem;
}

@media (min-width: 640px) {
  .home-winners__fade {
    width: 3.5rem;
  }
}

.home-winners__fade--left {
  left: 0;
  background: linear-gradient(
    to right,
    var(--site-bg, rgb(10, 14, 22)) 0%,
    rgba(10, 14, 22, 0.92) 40%,
    transparent 100%
  );
}

.home-winners__fade--right {
  right: 0;
  background: linear-gradient(
    to left,
    var(--site-bg, rgb(10, 14, 22)) 0%,
    rgba(10, 14, 22, 0.92) 40%,
    transparent 100%
  );
}

[data-theme="light"] .home-winners__fade--left {
  background: linear-gradient(to right, var(--site-bg, #f1f5f9) 0%, rgba(241, 245, 249, 0.95) 45%, transparent 100%);
}

[data-theme="light"] .home-winners__fade--right {
  background: linear-gradient(to left, var(--site-bg, #f1f5f9) 0%, rgba(241, 245, 249, 0.95) 45%, transparent 100%);
}

.home-winners__marquee-inner {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: homeWinnersMarquee 48s linear infinite;
}

.home-winners__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  gap: 0.625rem;
  padding-right: 0.625rem;
}

.home-winner-card {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  width: 12.5rem;
  min-height: 4.75rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--site-surface-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px -14px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.home-winner-card__thumb {
  flex-shrink: 0;
  width: 3.75rem;
  height: 4.75rem;
  overflow: hidden;
  background: rgb(14, 19, 28);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.home-winner-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-winner-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
  padding: 0.5rem 0.625rem 0.5rem 0.5rem;
}

.home-winner-card__user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.home-winner-card__avatar {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-winner-card__name {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-winner-card__prize {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-winner-card__amount {
  color: #ff4545;
  font-variant-numeric: tabular-nums;
}

.home-winner-card__meta {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-winners__static {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .home-winner-card {
    width: 13.5rem;
  }
}

@keyframes homeWinnersMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-winners__marquee-inner {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

[data-theme="light"] .home-winner-card {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .home-winner-card__thumb {
  background: #e2e8f0;
  border-right-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .home-winner-card__name,
[data-theme="light"] .home-winner-card__prize {
  color: #0f172a;
}

[data-theme="light"] .home-winner-card__amount {
  color: #ff1e1e;
}

[data-theme="light"] .home-winner-card__meta {
  color: #64748b;
}
