.pets-page {
  width: min(1180px, calc(100% - 36px));
  margin: 26px auto 48px;
}

.pets-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #26382f;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(66, 224, 208, 0.2), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(185, 59, 78, 0.2), transparent 28%),
    linear-gradient(145deg, #10231a 0%, #08110d 66%, #1e0d12 100%);
  color: #f6fff9;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.pets-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
}

.pets-hero p {
  max-width: 820px;
  margin: 0 auto;
  color: #e1eee5;
  font: 18px/1.6 Arial, sans-serif;
}

.pets-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #6ff5de;
  font: 700 14px/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.egg-parade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.egg-parade img {
  width: clamp(58px, 8vw, 86px);
  height: clamp(58px, 8vw, 86px);
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(101, 247, 222, 0.32));
}

.pets-section {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pets-section > h2 {
  margin: 0 0 10px;
  color: #111;
  font-size: clamp(26px, 4vw, 38px);
}

.pets-section > p {
  max-width: 900px;
  margin: 0 0 20px;
  color: #343434;
  font: 17px/1.6 Arial, sans-serif;
}

.pet-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pet-step;
}

.pet-steps li {
  position: relative;
  min-height: 180px;
  padding: 58px 18px 18px;
  border: 1px solid #c9d8d1;
  border-radius: 10px;
  background: #f4faf7;
  color: #26332c;
  font: 16px/1.5 Arial, sans-serif;
  counter-increment: pet-step;
}

.pet-steps li::before {
  content: counter(pet-step);
  position: absolute;
  top: 15px;
  left: 17px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #132a20;
  color: #71f2dc;
  font: 700 17px/32px Arial, sans-serif;
  text-align: center;
}

.pet-steps strong {
  display: block;
  margin-bottom: 7px;
  color: #111;
  font-size: 18px;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.pet-card {
  --pet-color: #40e0d0;
  --pet-color-soft: #e3fbf7;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 184px;
  padding: 18px;
  border: 2px solid var(--pet-color);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, var(--pet-color-soft));
}

.pet-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--pet-color);
  opacity: 0.08;
}

.pet-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--pet-color));
}

.pet-card h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 21px;
}

.pet-card p {
  margin: 3px 0;
  color: #333;
  font: 15px/1.42 Arial, sans-serif;
}

.pet-tier {
  color: #8e1828;
  font-weight: 700;
}

.pet-card .pet-portal {
  margin: 7px 0;
  padding: 7px 9px;
  border-left: 3px solid var(--pet-color);
  background: rgb(255 255 255 / 64%);
  color: #202020;
  font-size: 14px;
  line-height: 1.35;
}

.pet-green-bat {
  --pet-color: #35a85c;
  --pet-color-soft: #e9f8ed;
}

.pet-blue-bat {
  --pet-color: #357ad1;
  --pet-color-soft: #e9f2ff;
}

.pet-black-bat {
  --pet-color: #72518e;
  --pet-color-soft: #f2edf6;
}

.pet-green-wyvern {
  --pet-color: #2f9a4d;
  --pet-color-soft: #f3f7d9;
}

.pet-blue-wyvern {
  --pet-color: #245fbb;
  --pet-color-soft: #e6f5ff;
}

.pet-red-wyvern {
  --pet-color: #c93d37;
  --pet-color-soft: #fff0e4;
}

.pet-black-wyvern {
  --pet-color: #41465f;
  --pet-color-soft: #eceef5;
}

.pet-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.pet-fact {
  padding: 18px;
  border-left: 5px solid #40e0d0;
  border-radius: 8px;
  background: #f7f7f7;
}

.pet-fact h3 {
  margin: 0 0 8px;
  color: #111;
}

.pet-fact p,
.pet-fact li {
  color: #333;
  font: 16px/1.5 Arial, sans-serif;
}

.pet-fact ul {
  margin: 0;
  padding-left: 20px;
}

.passive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.passive-card {
  padding: 18px;
  border: 1px solid #d4d4d4;
  border-top: 6px solid var(--passive-color);
  border-radius: 10px;
  background: #fff;
}

.passive-card h3 {
  margin: 0 0 8px;
  color: #111;
}

.passive-card p {
  margin: 0;
  color: #333;
  font: 16px/1.5 Arial, sans-serif;
}

.passive-red {
  --passive-color: #d34141;
}

.passive-green {
  --passive-color: #47a35d;
}

.passive-blue {
  --passive-color: #3a75c4;
}

.passive-yellow {
  --passive-color: #d6ad22;
}

.pet-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 2px solid #8e1828;
  border-radius: 9px;
  background: #fff2f3;
  color: #45131a;
  font: 700 15px/1.5 Arial, sans-serif;
}

.pets-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .pet-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pets-page {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
  }

  .pet-steps {
    grid-template-columns: 1fr;
  }

  .pet-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pet-card img {
    width: 72px;
    height: 72px;
  }
}
