/* Mascotes — coleção do jogador (Fase 5B) */
.pet-root {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

.pet-hero h2 {
  margin: 0 0 0.2rem;
}

.pet-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pet-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 0.65rem;
  align-items: start;
}

.pet-equipped-panel,
.pet-detail,
.pet-collection,
.pet-temp-slot {
  padding: 0.75rem 0.85rem;
}

.pet-panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.85);
}

.pet-equipped-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pet-equipped-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.pet-art {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(8, 12, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pet-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pet-art--lg {
  width: 140px;
  height: 140px;
}

.pet-art--sm {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.pet-art-placeholder {
  font-size: 2rem;
  opacity: 0.45;
}

.pet-name {
  margin: 0;
  font-size: 1rem;
  color: var(--text-gold, #e8c547);
}

.pet-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.pet-tag {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: rgba(201, 162, 39, 0.9);
  background: rgba(201, 162, 39, 0.08);
}

.pet-tag--equipped {
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
}

.pet-tag--rarity-common { color: #cbd5e1; border-color: rgba(203, 213, 225, 0.35); }
.pet-tag--rarity-refined { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); }
.pet-tag--rarity-rare { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); }
.pet-tag--rarity-epic { color: #f472b6; border-color: rgba(244, 114, 182, 0.35); }
.pet-tag--rarity-legendary { color: #fbbf24; border-color: rgba(251, 191, 36, 0.45); }

.pet-bonus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.pet-bonus-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
}

.pet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.pet-equipped-panel {
  grid-column: 1;
  grid-row: 1;
}

.pet-temp-slot {
  grid-column: 1;
  grid-row: 2;
  opacity: 0.92;
}

.pet-detail {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.pet-collection {
  grid-column: 1 / -1;
  grid-row: 3;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.45rem;
}

.pet-card {
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(6, 10, 18, 0.55);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pet-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.pet-card--selected {
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.pet-card--equipped {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.pet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pet-fav-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  opacity: 0.45;
}

.pet-fav-btn--on {
  opacity: 1;
}

.pet-card-name {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.pet-card-stage {
  margin: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.pet-detail-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.pet-detail-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.65rem;
  font-size: 0.75rem;
}

.pet-detail-info dt {
  color: var(--text-muted);
}

.pet-detail-info dd {
  margin: 0;
}

.pet-rename-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0;
}

.pet-rename-row input {
  flex: 1 1 140px;
  min-width: 0;
}

.pet-temp-slot--active {
  border-color: rgba(201, 162, 39, 0.45);
}

.pet-temp-empty {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pet-temp-empty-icon {
  font-size: 1.1rem;
  opacity: 0.65;
}

.pet-temp-active {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.35rem;
}

.pet-temp-art {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-temp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-temp-info {
  flex: 1;
  min-width: 0;
}

.pet-temp-name {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.pet-bonus-pill--xp {
  background: rgba(76, 175, 80, 0.18);
  border-color: rgba(76, 175, 80, 0.35);
  color: #a5d6a7;
}

.pet-temp-slot--future {
  border-style: dashed;
}

.pet-temp-bonus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.pet-empty-collection {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pet-xp-wrap {
  width: 100%;
  margin: 0.35rem 0;
}

.pet-xp-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.pet-xp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.pet-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.75), rgba(129, 140, 248, 0.85));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.pet-xp-bar--max .pet-xp-bar-fill {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.7), rgba(201, 162, 39, 0.85));
}

.pet-history {
  margin-top: 0.15rem;
}

.pet-history-dl {
  margin: 0 0 0.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.pet-history-dl dt {
  color: var(--text-muted);
}

.pet-history-dl dd {
  margin: 0;
}

.pet-history-sub {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.72rem;
  color: rgba(201, 162, 39, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pet-history-evolutions {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
}

.pet-history-evolutions li {
  margin-bottom: 0.25rem;
}

@media (max-width: 820px) {
  .pet-layout {
    grid-template-columns: 1fr;
  }

  .pet-detail {
    grid-column: 1;
    grid-row: auto;
  }

  .pet-temp-slot {
    grid-row: auto;
  }

  .pet-equipped-panel,
  .pet-detail,
  .pet-collection,
  .pet-temp-slot {
    grid-row: auto;
  }

  .pet-detail-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pet-detail-info dl {
    text-align: left;
  }
}
