/* Game page additions. Shared typography and brand colors come from styles.css. */
body.pet-page {
  --pet-tint: #f8eee8;
  --pet-gutter: clamp(20px, 5vw, 76px);
  overflow-wrap: break-word;
}

.pet-page .pet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  min-height: 96px;
  padding: 12px var(--pet-gutter);
  border-bottom: 1px solid var(--line);
}

.pet-page .pet-nav,
.pet-page .pet-actions,
.pet-page .pet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.pet-page .pet-nav { gap: 0 clamp(16px, 3vw, 36px); }
.pet-page .pet-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.pet-page .pet-nav a:hover { color: var(--red); }

.pet-page .section-wrap {
  max-width: 1440px;
  padding: clamp(52px, 7vw, 100px) var(--pet-gutter);
}
.pet-page .eyebrow { color: var(--red); }
.pet-page .pet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}
.pet-page .pet-hero-copy { min-width: 0; }
.pet-page .pet-hero h1 {
  margin: 16px 0 22px;
  color: var(--red);
  font-size: clamp(58px, 7.6vw, 114px);
  line-height: .98;
  letter-spacing: -.065em;
}
.pet-page .pet-hero-copy > p:not(.eyebrow):not(.pet-meta) {
  max-width: 36em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
}
.pet-page .pet-actions { gap: 12px; margin-top: 28px; }
.pet-page .pet-actions .button { max-width: 100%; border: 1px solid var(--red); }
.pet-page .pet-actions .button:not(.button-red) { color: var(--red); }
.pet-page .pet-actions .button:not(.button-red):hover { background: var(--pet-tint); }

.pet-page .pet-meta {
  list-style: none;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}
.pet-page .pet-meta > :is(span, li) {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  line-height: 1.5;
}

.pet-page .pet-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px 24px 72px 24px;
  background: var(--pet-tint);
}
.pet-page .pet-visual :is(img, svg, video) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}
.pet-page .pet-visual figcaption {
  justify-self: start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pet-page :is(.pet-overview, .pet-devlogs, .pet-footer-cta) { border-top: 1px solid var(--line); }
.pet-page :is(.pet-overview, .pet-devlogs, .pet-footer-cta) h2 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.pet-page :is(.pet-overview, .pet-devlogs, .pet-footer-cta) p:not(.eyebrow) {
  max-width: 68ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.pet-page .pet-features,
.pet-page .pet-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.pet-page .pet-features article,
.pet-page .pet-log {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.pet-page .pet-features article { border-top: 3px solid var(--red); }
.pet-page :is(.pet-features, .pet-log) h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.22;
  letter-spacing: -.035em;
}
.pet-page .pet-log-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pet-page .pet-log time {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.pet-page .pet-log a,
.pet-page .pet-overview p a,
.pet-page .pet-footer-cta a:not(.button) {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.pet-page .pet-footer-cta { background: var(--pet-tint); }

.pet-page .pet-hero-copy > p.pet-intro{font-size:16px;color:var(--muted);margin-top:18px;max-width:44ch}
.pet-page .pet-feature-number{display:block;margin-bottom:26px;color:var(--red);font-family:monospace;font-size:13px}
.pet-page .pet-artwork{border-top:1px solid var(--line)}
.pet-page .pet-art-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}
.pet-page .pet-art-heading h2{margin-top:12px;font-size:clamp(34px,4.3vw,60px)}
.pet-page .pet-art-heading > p{font-size:14px;line-height:1.7;color:var(--muted);max-width:260px}
.pet-page .pet-pack{margin:0}
.pet-page .pet-pack-art{position:relative;border:1px solid var(--line);background:#f1f5f0;overflow:hidden}
.pet-page .pet-pack-image{display:block;width:100%;height:auto}
.pet-page .pet-pack-logo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:16%;height:auto}
.pet-page .pet-pack figcaption{font-size:11px;line-height:1.7;color:var(--muted);margin-top:14px}
.pet-page .pet-credits{grid-template-columns:repeat(2,minmax(0,1fr))}
.pet-page .pet-credits .eyebrow{font-size:10px;margin-bottom:24px;color:var(--red)}
@media(max-width:760px){.pet-page .pet-art-heading{display:block}.pet-page .pet-art-heading > p{margin-top:18px;max-width:none}.pet-page .pet-credits{grid-template-columns:minmax(0,1fr)}}

@media (max-width: 760px) {
  .pet-page .pet-header { min-height: auto; }
  .pet-page .pet-header .brand-stamp { height: 56px; }
  .pet-page .pet-nav { gap: 0 18px; }
  .pet-page .pet-nav a { font-size: 13px; }
  .pet-page .pet-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pet-page .pet-hero h1 { font-size: clamp(55px, 12vw, 88px); }
  .pet-page .pet-visual { border-bottom-right-radius: 46px; }
  .pet-page .pet-visual :is(img, svg, video) { max-height: 350px; }
  .pet-page .pet-features { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .pet-page .pet-header { align-items: flex-start; }
  .pet-page .pet-nav { width: 100%; }
  .pet-page .pet-actions .button { padding: 14px 17px; gap: 20px; }
}
