/* REMOVED_DEV_LOGIN_SENTINEL retained elsewhere; this file focuses on Mulligan layout */
/* Mulligan modal layout enhancements */

/* Container ensures cards start at top and wrap naturally */
.modal .mulligan-cards-grid {
  display: grid;
  width: 100%;
  gap: 14px;
  align-items: start;
  /* Force a single row with six columns for a 6-card mulligan */
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

/* If fewer cards (attribute set from React), allow slightly larger tiles */
.modal .mulligan-cards-grid[data-cols*='160px'] {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

/* Keep six columns on smaller screens by shrinking tiles; allow horizontal scroll as a fallback */
@media (max-width: 900px) {
  .modal .mulligan-cards-grid { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
}
@media (max-width: 640px) {
  .modal .mulligan-cards-grid {
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    overflow-x: auto;
  }
}

/* Card tile styling */
.modal .mulligan-cards-grid .card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.modal .mulligan-cards-grid .card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.2);
}

/* Card images scale nicely and keep aspect */
.modal .mulligan-cards-grid .card img {
  width: 100%;
  height: auto;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Text-only fallback styling */
.modal .mulligan-cards-grid .card > div {
  padding: 10px 8px;
  font-size: 13px;
}

/* Accessibility focus outline */
.modal .mulligan-cards-grid .card:focus-visible {
  outline: 2px solid var(--color-accent, #4ea3ff);
  outline-offset: 2px;
}
