/* Live Casino lobby skin — layered on top of assets/css/pages/slot.css.
   The live-casino lobby borrows the slot lobby's hero and empty state, but not
   its provider rail, search or thumb-plus-Play-Now cards: live titles ship as
   banner artwork with the game name baked in, so the lobby is a short list of
   big image cards — the same shape the sportsbook lobby uses. */

/* 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 .livecasino-hero,
.slot-wrap .livecasino-hero {
  background-image: url('../../../public/banners/live.png');
}

/* Card list — two up on a full-width desktop, like the sportsbook lobby.
   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 table sits
   in the middle of the page instead of stranding an empty half-row beside it. */
.livecasino-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 table. overflow:hidden also clips the diagonal .slot-status
   ribbon to the corner. */
.livecasino-card {
  position: relative;
  display: block;
  width: 100%;
  /* The table 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;
}

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

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

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

/* "Hot" corner ribbon — .slot-status supplies the diagonal banner; this only
   nudges it clear of the card's rounded corner. */
.livecasino-card-ribbon {
  top: 0.9rem;
}

/* Unavailable (maintenance / coming soon) — dim the artwork behind a centred
   banner, matching the sportsbook lobby and the slot lobby's big cards. */
.livecasino-card.is-maintenance,
.livecasino-card.is-soon {
  cursor: default;
}

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

.livecasino-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%);
}

/* Coming soon is a neutral state, not a fault — gold rather than the red the
   maintenance banner uses. */
.livecasino-card-status--soon {
  color: #1a1205;
  background: linear-gradient(107deg, #f7d774 0%, #c9a227 100%);
}

/* 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 .livecasino-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%, 20rem));
  gap: 0.875rem;
}
