@media (max-width: 560px) {
  .field-note { display: none; }
  .hero { min-height: 680px; }
}

.structured-table-wrap {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

.pet-upgrade-mobile {
  display: none;
}

.pet-upgrade-groups {
  order: 3;
}

.pet-upgrade-table td {
  white-space: pre-line;
}

@media (max-width: 760px) {
  .article,
  .article-body,
  .structured-public-panel,
  .pet-upgrade-table {
    min-width: 0;
    max-width: 100%;
  }

  .pet-upgrade-desktop {
    display: none;
  }

  .pet-upgrade-mobile {
    display: block;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(125, 193, 219, .2);
    border-radius: 10px;
    background: rgba(5, 24, 40, .38);
  }

  .pet-upgrade-mobile table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .pet-upgrade-mobile .pet-level-column { width: 13%; }
  .pet-upgrade-mobile .pet-cost-column { width: 30%; }
  .pet-upgrade-mobile .pet-bonus-column { width: 32%; }
  .pet-upgrade-mobile .pet-power-column { width: 25%; }

  .pet-upgrade-mobile th,
  .pet-upgrade-mobile td {
    padding: 9px 4px;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.25;
  }

  .pet-upgrade-mobile th {
    white-space: normal;
    font-size: 9px;
    line-height: 1.25;
  }

  .pet-upgrade-mobile td {
    white-space: pre-line;
  }

  .pet-upgrade-mobile .pet-food-heading img {
    width: 23px;
    height: 23px;
  }

  .pet-mobile-cost {
    display: grid;
    justify-content: center;
    gap: 3px;
  }

  .pet-mobile-cost > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .pet-mobile-cost img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .pet-mobile-cost > .pet-mobile-breakthrough {
    display: block;
    min-width: 0;
    text-align: start;
    line-height: 1.45;
    color: #c9b8ff;
  }

  .pet-upgrade-groups {
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 4px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .pet-upgrade-groups button {
    flex: 1 0 58px;
    min-width: 58px;
    width: auto;
    padding: 7px 6px;
    font-size: 12px;
    white-space: nowrap;
  }
}
