#play-button {
    font-size: 16px !important;  /* important to override Bootstrap or default styles */
    touch-action: manipulation;
}

#next-card .card-body {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 1000px; /* Arbitrary large value */
    padding: 1rem; /* Add padding for initial look */
    overflow: hidden;
}

#next-card .card-body.hidden {
    max-height: 0;
    padding: 0;
}

.rarity-image {
    max-width: 100px;
    max-height: 100px;
}
.rarity-info {
    max-width: 50px;
    max-height: 50px;
}

.rank-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#game-container {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#game-container.show {
  display: block;
  opacity: 1;
}

#loader-container {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: white; /* or dark backdrop if preferred */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease; /* smooth fading */
}

@media (max-width: 575.98px) {
    /* On extra small screens, add padding below the top row */
    .navbar .left-group {
        padding-bottom: 0.75rem; /* Adjust as needed */
    }
}


/* Mutation effects (sparkles, iridescent, golden) are in mutations.css. */

/* Collection: owned rarities with their mutations, live. */
.lsx-collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.lsx-collect {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 0.5rem 0.75rem;
  border: 2px solid var(--collect-ring, var(--lsx-cloud, #e6e9f7));
  border-radius: 14px;
  background: var(--lsx-navy, #0b1026);
  color: #fff;
  text-align: center;
}
.lsx-collect__art { position: relative; display: grid; place-items: center; height: 72px; margin-bottom: 0.4rem; border-radius: 12px; }
.lsx-collect__icon { font-size: 3rem; }
.lsx-collect__img { width: 64px; height: 64px; object-fit: contain; }
.lsx-collect__name { font-weight: 800; font-size: 0.9rem; line-height: 1.2; }
.lsx-collect__meta { color: #aab3d6; font-size: 0.75rem; font-weight: 700; }
.lsx-collect.is-mutated .lsx-collect__meta { color: var(--collect-ring, #facc15); }
.lsx-collect__n { position: absolute; top: 6px; right: 8px; font-size: 0.75rem; font-weight: 800; color: #facc15; }

#lsx-capture-btn { margin-top: 0.25rem; }
