/* Rush lobby polish: clear game identities, premium artwork and compact copy. */
body.rush-page-active {
  --rush-lime: #caff63;
  --rush-coral: #ff776f;
  --rush-card: #111318;
}

body.rush-page-active:not(.admin-page) .topbar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  padding-right: 16px !important;
  padding-left: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085) !important;
  background: rgba(8, 9, 12, 0.98) !important;
}

body.rush-page-active:not(.admin-page) .topbar .brand-lockup {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}

body.rush-page-active:not(.admin-page) .topbar .brand-logo {
  width: min(108px, 34vw) !important;
  max-width: min(108px, 34vw) !important;
  height: 34px !important;
  max-height: 34px !important;
  object-position: left center !important;
}

body.rush-page-active:not(.admin-page) .topbar .topbar-tools {
  grid-column: 3 !important;
  justify-self: end !important;
}

html.miniapp-dashboard:not(.rush-miniapp-mode) body.rush-page-active:not(.admin-page) .topbar .brand-lockup {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}

html.miniapp-dashboard:not(.rush-miniapp-mode) body.rush-page-active:not(.admin-page) .topbar .brand-logo {
  width: min(108px, 34vw) !important;
  max-width: min(108px, 34vw) !important;
  height: 34px !important;
  max-height: 34px !important;
  object-position: left center !important;
}

html.miniapp-dashboard:not(.rush-miniapp-mode) body.rush-page-active:not(.admin-page) .topbar .topbar-tools {
  grid-column: 3 !important;
  justify-self: end !important;
}

.rush-page-shell {
  width: min(100%, 960px);
  padding-right: 16px;
  padding-left: 16px;
}

.rush-games-section {
  margin-top: 14px;
}

.rush-section-heading {
  align-items: center;
  margin-bottom: 15px;
}

.rush-section-title-group {
  min-width: 0;
}

.rush-section-heading h2 {
  font-size: clamp(22px, 5.8vw, 27px);
  font-weight: 780;
  letter-spacing: -0.045em;
}

.rush-section-subtitle {
  margin: 6px 0 0;
  color: #90939d;
  font-size: 11px;
  font-weight: 520;
  line-height: 1.35;
}

.rush-carousel-controls {
  gap: 6px;
}

.rush-carousel-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: #14161b;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.rush-game-rail {
  gap: 11px;
  padding: 2px 1px 9px;
}

.rush-game-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: var(--rush-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.rush-game-card-primary {
  border-color: rgba(202, 255, 99, 0.6);
  box-shadow: 0 0 0 1px rgba(202, 255, 99, 0.12), 0 14px 32px rgba(0, 0, 0, 0.3);
}

.rush-game-card-primary .rush-game-status {
  border-color: rgba(202, 255, 99, 0.22);
  background: rgba(202, 255, 99, 0.08);
  color: var(--rush-lime);
}

.rush-game-art {
  aspect-ratio: 286 / 389 !important;
  background-color: #151820 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

.rush-game-art::before,
.rush-game-art::after {
  display: none !important;
}

.rush-game-card .rush-game-art-label {
  display: none !important;
}

/* The supplied campaign posters carry their title inside the image. Crop that
   header off now that every entry has a readable caption below the artwork. */
.rush-game-card[data-rush-game="candle-hunter"] .rush-candle-hunter-art {
  background-image: url("/static/rush-candle-hunter-poster-v1.png?v=20261014-rush-lobby02") !important;
  background-size: auto 140% !important;
  background-position: center bottom !important;
}

.rush-game-card[data-rush-game="asset-race"] .rush-asset-race-art {
  background-image: url("/static/rush-asset-race-poster-v1.png?v=20261014-rush-lobby02") !important;
  background-size: auto 140% !important;
  background-position: center bottom !important;
}

.rush-game-card[data-rush-game="direction-dash"] .rush-predictor-art {
  background-image: url("/static/rush-zone-rush-poster-v1.png?v=20261014-rush-lobby02") !important;
  background-size: auto 140% !important;
  background-position: center bottom !important;
}

.rush-game-card[data-rush-game="market-grid"] .rush-market-grid-art {
  background-image: url("/static/cube-trader-poster-v1.png?v=20261014-rush-lobby02") !important;
  background-size: auto 140% !important;
  background-position: center bottom !important;
}

.rush-game-card[data-rush-game="one-tap-scalper"] .rush-one-tap-scalper-art {
  background-image: url("/static/rush-btc-sprint-poster-v1.jpg?v=20261014-rush-art01") !important;
}

.rush-game-card[data-rush-game="apex-surfer"] .rush-apex-surfer-art {
  background-image: url("/static/apex-scalper-poster-v2.png?v=20261024-apex-poster-v2-source01") !important;
}

.rush-game-card[data-rush-game="liquidity-racer"] .rush-liquidity-racer-art {
  background-image: url("/static/rush-liquidity-racer-poster-v1.jpg?v=20261014-rush-art01") !important;
}

.rush-game-card .rush-game-copy {
  display: grid !important;
  align-content: start;
  gap: 7px;
  min-height: 110px;
  padding: 11px 12px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, #15171c, #111318);
}

.rush-game-card .rush-game-status {
  min-height: 18px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #b9bdc6;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.065em;
  line-height: 1;
}

.rush-game-card .rush-game-copy strong {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.rush-game-card .rush-game-copy > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  color: #989ba5;
  font-size: 10px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
  .rush-carousel-button:hover {
    border-color: rgba(202, 255, 99, 0.36);
    background: #1b1e24;
  }

  .rush-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.23);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  }

  .rush-game-card-primary:hover {
    border-color: var(--rush-lime);
  }
}

@media (max-width: 768px) {
  .rush-page-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .rush-game-rail {
    grid-auto-columns: 48%;
  }

  .rush-game-card .rush-game-copy {
    min-height: 103px;
    padding: 10px 10px 12px;
  }
}

@media (max-width: 360px) {
  .rush-section-subtitle {
    max-width: 205px;
  }

  .rush-game-rail {
    grid-auto-columns: 47%;
  }

  .rush-game-card .rush-game-copy strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rush-carousel-button,
  .rush-game-card {
    transition: none;
  }
}
