.bp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 36px;
  align-items: center;
  border: 1px solid #22d3ee55;
  border-radius: 22px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, #22d3ee25, transparent 34%),
    linear-gradient(135deg, #08182f, #101d43 58%, #102654);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.bp-heroCopy {
  position: relative;
  z-index: 1;
}
.bp-title {
  margin: 4px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}
.bp-lead {
  max-width: 680px;
  color: #c9d6eb;
  font-size: 16.5px;
  line-height: 1.8;
  margin: 0 0 24px;
}
.bp-heroImage {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.bp-highlightGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.bp-highlight {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 20px;
}
.bp-highlightIcon {
  font-size: 27px;
}
.bp-highlight h2 {
  font-size: 16px;
  margin: 9px 0 6px;
}
.bp-highlight p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

.bp-howTo {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 30px;
  align-items: start;
  margin-top: 40px;
  border: 1px solid #f5c45144;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5c4510d, #22d3ee0d);
  padding: 26px;
}
.bp-howTo h2 {
  font-size: 22px;
  margin: 2px 0 0;
}
.bp-howTo ol {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bp-howTo li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #dce7f7;
  font-size: 14.5px;
}
.bp-howTo li span {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06111e;
  font-weight: 900;
  background: linear-gradient(120deg, var(--gold), #f59e0b);
}

.bp-sectionHead {
  scroll-margin-top: 94px;
  margin: 48px 0 18px;
}
.bp-sectionHead h2 {
  font-size: 27px;
  margin: 2px 0 4px;
}
.bp-sectionHead > p:last-child {
  color: var(--muted);
  margin: 0;
}
.bp-petGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bp-petCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.bp-petCard:hover {
  transform: translateY(-4px);
  border-color: #22d3ee88;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
.bp-petImageButton {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #071326;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
}
.bp-petImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.25s ease;
}
.bp-petCard:hover .bp-petImage {
  transform: scale(1.025);
}
.bp-zoomHint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border: 1px solid #ffffff3d;
  border-radius: 999px;
  background: #04101dcc;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.bp-petImageButton:hover .bp-zoomHint,
.bp-petImageButton:focus-visible .bp-zoomHint {
  opacity: 1;
  transform: none;
}
.bp-petBody {
  padding: 16px;
}
.bp-petBody h3 {
  font-size: 18px;
  margin: 0 0 5px;
}
.bp-petBody > p {
  min-height: 44px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.bp-statsButton {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 12px;
  border: 1px solid #ffffff16;
  border-radius: 12px;
  padding: 8px;
  color: var(--accent1);
  background: #07132699;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.bp-statsButton:hover {
  border-color: #22d3ee66;
  background: #0a1b33;
  transform: translateY(-1px);
}
.bp-statsButton:focus-visible,
.bp-petImageButton:focus-visible {
  outline: 2px solid var(--accent1);
  outline-offset: -2px;
}
.bp-statsButton img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  object-position: top;
  border-radius: 7px;
}
.bp-statsButton > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bp-statsButton strong {
  color: var(--accent1);
  font-size: 12.5px;
}
.bp-statsButton small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

/* Battle Pet popup */
.bp-modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 6, 17, 0.88);
  backdrop-filter: blur(8px);
  animation: modalFade 0.16s ease;
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.bp-modal {
  position: relative;
  border: 1px solid #22d3ee5c;
  border-radius: 20px;
  background: #08152a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.68);
  animation: modalRise 0.18s ease;
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.bp-modalClose {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff3d;
  border-radius: 50%;
  background: #04101de8;
  color: #fff;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.bp-modalClose:hover {
  background: #172a48;
  border-color: var(--accent1);
  transform: scale(1.05);
}
.bp-modalClose:focus-visible {
  outline: 2px solid var(--accent1);
  outline-offset: 2px;
}

.bp-photoModal {
  width: min(96vw, 1120px);
  height: min(94vh, 920px);
  overflow: hidden;
  background: #020813;
}
.bp-fullPhoto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.bp-photoCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 24px 20px;
  background: linear-gradient(transparent, rgba(1, 6, 17, 0.92));
  pointer-events: none;
}
.bp-photoCaption h2 {
  margin: 0 0 3px;
  font-size: 21px;
}
.bp-photoCaption p {
  margin: 0;
  color: #cbd8eb;
  font-size: 13px;
}

.bp-detailModal {
  width: min(96vw, 1060px);
  max-height: 92vh;
  padding: 28px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 10%, #22d3ee16, transparent 30%),
    #08152a;
}
.bp-modalHead {
  padding-right: 50px;
  margin-bottom: 20px;
}
.bp-modalHead h2 {
  margin: 2px 0 4px;
  font-size: clamp(24px, 4vw, 34px);
}
.bp-modalHead > p:last-child {
  margin: 0;
  color: var(--muted);
}
.bp-detailContent {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: 24px;
  align-items: start;
}
.bp-statsPanel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff1f;
  border-radius: 15px;
  padding: 14px;
  background: #020a18;
}
.bp-statsPanel img {
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 9px;
}
.bp-statsPanel span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.bp-skillPanel h3 {
  margin: 0 0 12px;
  font-size: 19px;
}
.bp-skillList {
  display: grid;
  gap: 10px;
}
.bp-skillItem {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #ffffff18;
  border-radius: 13px;
  padding: 13px;
  background: #0b1b34;
}
.bp-skillNumber {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #04111d;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
}
.bp-skillTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bp-skillTitleRow h4 {
  margin: 0;
  font-size: 15px;
}
.bp-skillTitleRow > span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}
.bp-skillType {
  display: inline-block;
  margin: 3px 0 5px;
  border: 1px solid #22d3ee40;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--accent1);
  background: #22d3ee0d;
  font-size: 10px;
  font-weight: 700;
}
.bp-skillItem p {
  margin: 0;
  color: #bac9de;
  font-size: 12.5px;
  line-height: 1.62;
}
.bp-autoNote {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid #f5c4513d;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f5c4510b;
}
.bp-autoNote strong {
  color: var(--gold);
  font-size: 12.5px;
}
.bp-autoNote span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.bp-note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid #22d3ee3d;
  border-radius: 14px;
  background: #22d3ee0c;
  padding: 15px 17px;
}
.bp-note p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.bp-backRow {
  margin-top: 30px;
}

@media (max-width: 920px) {
  .bp-hero {
    grid-template-columns: 1fr;
  }
  .bp-heroImage {
    max-height: 520px;
  }
  .bp-highlightGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-petGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .bp-hero {
    padding: 22px;
    gap: 24px;
  }
  .bp-highlightGrid,
  .bp-petGrid {
    grid-template-columns: 1fr;
  }
  .bp-howTo {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .bp-petImageButton {
    height: auto;
    max-height: 470px;
  }
  .bp-petImage {
    height: auto;
    max-height: 470px;
    object-fit: contain;
  }
  .bp-zoomHint {
    opacity: 1;
    transform: none;
  }
  .bp-modalBackdrop {
    padding: 8px;
  }
  .bp-photoModal {
    width: 100%;
    height: 96vh;
    border-radius: 14px;
  }
  .bp-detailModal {
    width: 100%;
    max-height: 96vh;
    padding: 20px 14px;
    border-radius: 14px;
  }
  .bp-modalClose {
    top: 8px;
    right: 8px;
  }
  .bp-detailContent {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bp-statsPanel {
    position: static;
  }
  .bp-statsPanel img {
    max-height: 58vh;
  }
  .bp-photoCaption {
    padding: 48px 16px 16px;
  }
}
