/* ==========================================================
   Real wins & redeems  —  templates/partials/wins.html
   Screenshots scroll right to left in a loop; "contact manager"
   call-out underneath. Uses .block-head (games.css) and
   .btn-hero (hero.css).
   ========================================================== */

.wins {
  padding: 8px 0 40px;
}

/* Title in the centre */
.wins-head {
  justify-content: center;
  text-align: center;
}

/* ---------- Scrolling strip ---------- */

.wins-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.wins-track {
  --wins-gap: 20px;
  display: flex;
  gap: var(--wins-gap);
  width: max-content;
  margin: 0;
  padding: 8px 0 12px;
  list-style: none;
  animation: wins-scroll 40s linear infinite;
}

/* Moves exactly one copy of the list, so the loop is seamless */
@keyframes wins-scroll {
  to {
    transform: translateX(calc(-50% - var(--wins-gap) / 2));
  }
}

.wins-marquee:hover .wins-track,
.wins-marquee:focus-within .wins-track {
  animation-play-state: paused;
}

.win-card {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: #f2f2f2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 176, 0, 0.1);
}

.win-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Darken the bottom so the badge stands out */
.win-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.win-badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--golden-glow), var(--neon-gold));
  color: var(--pure-black);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 176, 0, 0.35);
}

.win-badge .ico {
  width: 16px;
  height: 16px;
}

/* ---------- Contact manager call-out ---------- */

.manager-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background:
    radial-gradient(70% 140% at 0% 50%, rgba(255, 176, 0, 0.18), transparent 70%),
    radial-gradient(60% 140% at 100% 50%, rgba(255, 23, 68, 0.18), transparent 70%),
    var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.06), 0 0 40px rgba(255, 176, 0, 0.15);
}

.manager-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--golden-glow), var(--neon-gold));
  color: var(--pure-black);
  box-shadow: 0 0 22px rgba(255, 176, 0, 0.45);
}

.manager-icon .ico {
  width: 26px;
  height: 26px;
}

.manager-text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-soft);
}

.manager-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--text);
}

/* Bigger than the other buttons, with a soft pulsing ring */
.manager-btn {
  flex-shrink: 0;
  height: 60px;
  padding: 0 30px;
  font-size: 16px;
  animation: manager-pulse 2s ease-out infinite;
}

.manager-btn .ico {
  width: 22px;
  height: 22px;
}

@keyframes manager-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.6), 0 8px 24px rgba(255, 176, 0, 0.3); }
  70% { box-shadow: 0 0 0 14px rgba(255, 176, 0, 0), 0 8px 24px rgba(255, 176, 0, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0), 0 8px 24px rgba(255, 176, 0, 0.3); }
}


/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .manager-cta {
    flex-direction: column;
    text-align: center;
  }

  .manager-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .win-card {
    width: 180px;
  }

  .win-badge {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 4px;
    padding: 7px 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .win-badge .ico {
    width: 14px;
    height: 14px;
  }

  .wins-track {
    --wins-gap: 14px;
    animation-duration: 30s;
  }

  .manager-cta {
    padding: 20px;
  }

  .manager-btn {
    height: 56px;
    padding: 0 20px;
    font-size: 15px;
  }
}

/* No movement: show a normal swipeable row instead */
@media (prefers-reduced-motion: reduce) {
  .wins-marquee {
    overflow-x: auto;
  }

  .wins-track {
    animation: none;
  }

  .win-card--copy {
    display: none;
  }

  .manager-btn {
    animation: none;
  }
}
