/* --- Unique combo browser ------------------------------------------------------------- */

.breeding-combos {
  margin-bottom: 3rem;
}

.breeding-combos-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.breeding-combos-header h2 {
  margin: 0;
}

.breeding-combos-header .catalog-search-form {
  min-width: min(320px, 100%);
}

.breeding-combo-count {
  color: var(--muted);
  font-size: 0.85rem;
}

.breeding-combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 0.45rem;
}

.breeding-combo-more {
  display: block;
  min-width: min(18rem, 100%);
  min-height: 42px;
  margin: 0.85rem auto 0;
  padding: 0.48rem 1rem;
  color: #dffcff;
  border: 1px solid rgba(100, 244, 255, 0.38);
  border-radius: 2px;
  background: linear-gradient(105deg, rgba(20, 70, 81, 0.48), rgba(5, 22, 29, 0.96));
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.breeding-combo-more:hover,
.breeding-combo-more:focus-visible {
  border-color: rgba(100, 244, 255, 0.82);
  outline: 0;
  box-shadow: 0 0 12px rgba(100, 244, 255, 0.15);
}

.breeding-combo-more[hidden] {
  display: none;
}

.breeding-combo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
}

.breeding-combo-pal {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.6rem;
  line-height: 1.15;
  text-align: center;
}

.breeding-combo-pal span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breeding-combo-pal img {
  border-radius: 7px;
  background: var(--panel);
}

.breeding-combo-pal:hover span {
  color: var(--cyan);
}

.breeding-combo-child span {
  font-weight: 700;
}

.breeding-combo-gender {
  color: var(--cyan);
  font-size: 0.85rem;
}

.breeding-combo-op {
  color: var(--muted);
  font-weight: 700;
}

.breeding-combo-empty {
  color: var(--muted);
}

/* --- Pal Finder -------------------------------------------------------------------------- */

.breeding-finder {
  margin-bottom: 2.75rem;
}

.breeding-finder-heading {
  display: flex;
  max-width: 980px;
  margin: 0 auto 1.25rem;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.breeding-finder-heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.breeding-finder-heading > p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.breeding-finder-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 2.3fr);
  gap: 1rem;
  align-items: start;
}

.breeding-finder-target {
  position: sticky;
  top: 1rem;
  overflow: visible;
}

.breeding-finder-target .catalog-search-form {
  margin-top: 1rem;
}

.breeding-finder-selected {
  min-height: 68px;
}

.breeding-finder-target-pal {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem;
  background: linear-gradient(135deg, rgba(98, 231, 237, 0.1), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(98, 231, 237, 0.32);
  border-radius: 12px;
}

.breeding-finder-target-pal > img,
.breeding-finder-target-pal > .breeding-thumb-fallback {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(3, 13, 19, 0.55);
  border-radius: 9px;
}

.breeding-finder-target-copy {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.breeding-finder-target-copy strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breeding-finder-target-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

.breeding-finder-target-results {
  z-index: 30;
  right: 1rem;
  left: 1rem;
}

.breeding-finder-results {
  min-width: 0;
  min-height: 280px;
}

.breeding-finder-results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.breeding-finder-results-header h2 {
  margin: 0.18rem 0 0.1rem;
}

.breeding-finder-results-header .catalog-search-form {
  width: min(320px, 100%);
}

.breeding-finder-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.breeding-finder-status[data-state="loading"] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cyan-soft);
}

.breeding-finder-status[data-state="loading"]::before {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(98, 231, 237, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  content: "";
  animation: breeding-finder-spin 700ms linear infinite;
}

.breeding-finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.breeding-finder-grid .breeding-combo {
  min-width: 0;
  padding: 0.55rem;
  background: linear-gradient(145deg, rgba(16, 42, 52, 0.8), rgba(6, 20, 28, 0.92));
}

.breeding-finder-grid .breeding-combo-pal {
  font-size: 0.66rem;
}

.breeding-finder-grid .breeding-combo-pal img,
.breeding-finder-grid .breeding-thumb-fallback {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.breeding-finder-grid .breeding-combo-child {
  color: var(--cyan-soft);
}

.breeding-finder-kind {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes breeding-finder-spin {
  to { transform: rotate(360deg); }
}

/* --- Guide ------------------------------------------------------------------------------- */

.breeding-guide {
  margin-bottom: 3rem;
}

.breeding-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.breeding-guide-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.breeding-guide-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--cyan-soft);
}

.breeding-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.breeding-game .catalog-results-layout {
  width: 100%;
  max-width: none;
}

.breeding-game-card.pal-card {
  --pal-card-copy-safe-inline-end: 5.6rem;
  min-height: 6.6rem;
  padding: 0.55rem var(--pal-card-copy-safe-inline-end) 0.5rem 0.65rem;
}

.breeding-game-card .paldeck-card-portrait {
  --pal-card-portrait-size: 5.4rem;
}

.breeding-game-card .paldeck-card-copy {
  min-height: 5.6rem;
  row-gap: 0.06rem;
}

.breeding-game-card .paldeck-card-name {
  font-size: 0.98rem;
}

.breeding-game-card .paldeck-card-rarity {
  font-size: 0.6rem;
}

.breeding-game-card .paldeck-card-elements {
  margin-left: 0.2rem;
}

.breeding-game-card .breeding-gender--inline {
  position: static;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0.78rem;
}

.breeding-game-card .paldeck-card-element {
  font-size: 0.6rem;
}

.breeding-game-card .paldeck-card-element img {
  width: 16px;
  height: 16px;
}

.breeding-game-card .paldeck-card-work img {
  width: 18px;
  height: 18px;
}

.breeding-game-card .paldeck-card-work b {
  font-size: 0.65rem;
}

.breeding-game-card .paldeck-card-stat-bar {
  font-size: 0.65rem;
}

.breeding-gender {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: rgba(7, 19, 28, 0.82);
  border: 1px solid rgba(183, 216, 219, 0.25);
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
}

.breeding-gender--male { color: #5ec2ff; }
.breeding-gender--female { color: #ff8ad9; }

.breeding-game-card--child .breeding-gender {
  display: none;
}

