/* Sportsbook lobby skin — layered on top of assets/css/pages/slot.css.
   The sportsbook borrows the slot lobby's hero and empty state, but not its
   provider rail, search or thumb-plus-Play-Now cards: with one card per sport
   provider, the lobby is a short list of big image cards, styled like the game
   cards on the home page (assets/css/pages/home.css .games-card). */

/* Hero artwork — same geometry as the slot hero, different image. Equal
   specificity to the slot.css rules, and this file loads after them. */
.d-content .sportbook-hero,
.slot-wrap .sportbook-hero {
  background-image: url('../../../public/banners/sport.png');
}

/* Card list — two up on a full-width desktop, like the home page games grid.
   Tracks are capped at 35rem rather than 1fr so a card never scales past its
   artwork, and auto-fit collapses the tracks no card landed in. Together with
   justify-content that centres whatever cards exist: today's lone provider sits
   in the middle of the page instead of stranding an empty half-row beside it. */
.sportbook-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 35rem));
  justify-content: center;
  gap: 1.5rem;
}

/* The card IS the artwork — no title, meta or Play Now overlay; clicking it
   launches the provider. */
.sportbook-card {
  position: relative;
  display: block;
  width: 100%;
  /* The provider artwork is ~35rem wide — never scale a card past it, or the
     image goes soft. */
  max-width: 35rem;
  padding: 0;
  overflow: hidden;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sportbook-card[data-launch-url]:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.45);
}

.sportbook-card[data-launch-url]:active {
  transform: scale(0.99);
}

.sportbook-card-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Maintenance — dim the artwork behind a centred banner, matching the home page
   and the slot lobby's big cards. */
.sportbook-card.is-maintenance {
  cursor: default;
}

.sportbook-card.is-maintenance .sportbook-card-img {
  filter: grayscale(0.7) brightness(0.55);
}

.sportbook-card-status {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 0.4375rem 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1875rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(107deg, #f56565 0%, #c53030 100%);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
}

/* Mobile — one card per row on a phone, two once there is room. 20rem rather
   than the desktop 30rem minimum, so a tablet reaches two columns instead of
   sitting at one until 1180px. */
.slot-wrap .sportbook-cards {
  /* Fixed tracks, 75% at most, so a card never outweighs the banner above it;
     auto-fit + centre keeps a lone card in the middle */
  grid-template-columns: repeat(auto-fit, min(75%, clamp(20rem, 38vw, 22rem)));
  gap: 0.875rem;
}
