/* v20260914-tournament-color-cards01: reference-led, image-free tournament list cards. */
.view-section[data-view="tournaments"] .tournament-rail-stack {
  gap: 0 !important;
  overflow: visible !important;
}

.view-section[data-view="tournaments"] .tournament-rail-section,
.view-section[data-view="tournaments"] .events-history-block.tournament-rail-section {
  gap: 0 !important;
  overflow: visible !important;
}

.view-section[data-view="tournaments"] .tournament-rail-heading {
  display: none !important;
}

.view-section[data-view="tournaments"] .tournament-grid.tournament-rail,
.view-section[data-view="tournaments"] .tournament-grid-history.tournament-rail,
body .app-shell .view-section[data-view="tournaments"] .tournament-grid.tournament-rail,
body .app-shell .view-section[data-view="tournaments"] .tournament-grid-history.tournament-rail {
  box-sizing: border-box !important;
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 0 8px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  touch-action: pan-y !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-card,
body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card {
  --tournament-card-color: #8f2732;
  position: relative !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  justify-content: stretch !important;
  align-content: stretch !important;
  gap: 12px !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 188px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 19px !important;
  color: #ffffff !important;
  background: var(--tournament-card-color) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
  isolation: isolate !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  text-align: left !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Manrope", sans-serif !important;
  font-size: inherit !important;
  cursor: default !important;
  transform: none !important;
  scroll-snap-align: none !important;
}

.view-section[data-view="tournaments"] button.tournament-affiche-card {
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

.view-section[data-view="tournaments"] button.tournament-affiche-card:active {
  transform: scale(0.992) !important;
}

.view-section[data-view="tournaments"] button.tournament-affiche-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88) !important;
  outline-offset: -4px !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="crimson"],
body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="crimson"] {
  --tournament-card-color: #8f2732;
}

.view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="indigo"],
body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="indigo"] {
  --tournament-card-color: #334c91;
}

.view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="teal"],
body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="teal"] {
  --tournament-card-color: #236761;
}

.view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="plum"],
body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-theme="plum"] {
  --tournament-card-color: #634275;
}

.view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-state="archive"],
body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card[data-tournament-state="archive"] {
  --tournament-card-color: #343841;
}

.view-section[data-view="tournaments"] .tournament-affiche-card::before,
.view-section[data-view="tournaments"] .tournament-affiche-card::after {
  display: none !important;
  content: none !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-top h4 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 820 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  text-wrap: balance !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-timing {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  max-width: 118px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  background: rgba(9, 12, 18, 0.25) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 11px !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-stats {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-self: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 15px !important;
  background: rgba(9, 12, 18, 0.42) !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-stat {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 64px !important;
  padding: 10px 13px !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-stat + .tournament-affiche-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-stat strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 820 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-stat small {
  color: rgba(255, 255, 255, 0.63) !important;
  font-size: 10px !important;
  font-weight: 620 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
  min-width: 0 !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-action,
.view-section[data-view="tournaments"] .tournament-affiche-participants {
  min-width: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-action {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.view-section[data-view="tournaments"] .tournament-affiche-participants {
  color: rgba(255, 255, 255, 0.92) !important;
  text-align: right !important;
  white-space: nowrap !important;
}

@media (min-width: 760px) {
  .view-section[data-view="tournaments"] .tournament-grid.tournament-rail,
  .view-section[data-view="tournaments"] .tournament-grid-history.tournament-rail,
  body .app-shell .view-section[data-view="tournaments"] .tournament-grid.tournament-rail,
  body .app-shell .view-section[data-view="tournaments"] .tournament-grid-history.tournament-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding-inline: 0 !important;
  }

  .view-section[data-view="tournaments"] .tournament-affiche-card,
  body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card {
    min-height: 198px !important;
  }
}

@media (max-width: 359px) {
  .view-section[data-view="tournaments"] .tournament-grid.tournament-rail,
  .view-section[data-view="tournaments"] .tournament-grid-history.tournament-rail,
  body .app-shell .view-section[data-view="tournaments"] .tournament-grid.tournament-rail,
  body .app-shell .view-section[data-view="tournaments"] .tournament-grid-history.tournament-rail {
    padding-inline: 0 !important;
  }

  .view-section[data-view="tournaments"] .tournament-affiche-card,
  body .app-shell .view-section[data-view="tournaments"] .tournament-affiche-card {
    min-height: 184px !important;
    padding: 14px !important;
  }

  .view-section[data-view="tournaments"] .tournament-affiche-top h4 {
    font-size: 16px !important;
  }

  .view-section[data-view="tournaments"] .tournament-affiche-timing {
    max-width: 102px !important;
    padding-inline: 8px !important;
    font-size: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-section[data-view="tournaments"] button.tournament-affiche-card:active {
    transform: none !important;
  }
}
