:root {
  --mint-50: #f4fff8;
  --mint-100: #dffbea;
  --mint-200: #baf2d1;
  --mint-300: #7fe0ad;
  --mint-500: #13b877;
  --mint-600: #068858;
  --ink: #071c16;
  --ink-2: #173d30;
  --ink-3: #527064;
  --cyan: #20d6e8;
  --violet: #b245f5;
  --pink: #f54fd4;
  --paper: #fbfffc;
  --line: rgba(7, 28, 22, .13);
  --shadow: 0 24px 70px rgba(16, 76, 54, .13);
  --display: "DIN Alternate", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(42, 219, 151, .15), transparent 28rem),
    radial-gradient(circle at 92% 26%, rgba(32, 214, 232, .10), transparent 24rem),
    var(--mint-50);
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--mint-600); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(6, 136, 88, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 136, 88, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 78%);
}

.hero {
  position: relative;
  min-height: 810px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  padding: 126px clamp(24px, 8vw, 130px) 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8%;
  width: 52%;
  height: 100%;
  background: linear-gradient(145deg, rgba(186, 242, 209, .34), rgba(32, 214, 232, .06));
  clip-path: polygon(23% 0, 100% 0, 100% 100%, 0 89%);
}
.hero-copy { position: relative; z-index: 2; max-width: 710px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--mint-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
}
.eyebrow span { width: 28px; height: 3px; background: var(--mint-500); box-shadow: 8px 0 0 rgba(19, 184, 119, .32); }
.hero h1,
.section-heading h2,
.pet-preview h2,
.pets-hero h1,
.toolbar-title h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.hero h1 { font-size: clamp(58px, 7.1vw, 112px); }
.hero h1 em,
.pets-hero h1 em {
  position: relative;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--mint-300);
}
.hero-intro { max-width: 610px; margin: 32px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button b { font-size: 20px; }
.button-primary { color: #fff; background: var(--ink); box-shadow: 6px 6px 0 var(--mint-300); }
.button-primary:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--mint-300); }
.button-ghost { background: rgba(255, 255, 255, .55); }
.button-ghost:hover { background: #fff; transform: translateY(-2px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 38px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 116px; }
.hero-meta small { display: block; color: var(--ink-3); font-size: 11px; letter-spacing: .12em; }
.hero-meta strong { display: block; margin-top: 2px; font-size: 14px; }
.status-dot::before,
.online-light {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #18cf7c;
  box-shadow: 0 0 0 5px rgba(24, 207, 124, .13), 0 0 14px #18cf7c;
}

.hero-art { position: relative; z-index: 1; min-height: 510px; display: grid; place-items: center; }
.portal-halo { position: absolute; border: 1px solid rgba(13, 150, 96, .28); border-radius: 50%; }
.portal-halo-one { width: 420px; height: 420px; animation: spin 16s linear infinite; }
.portal-halo-one::before, .portal-halo-one::after { content: ""; position: absolute; background: var(--mint-500); }
.portal-halo-one::before { top: -4px; left: 50%; width: 9px; height: 9px; box-shadow: 0 411px 0 var(--cyan); }
.portal-halo-one::after { top: 50%; right: -4px; width: 9px; height: 9px; box-shadow: -411px 0 0 var(--violet); }
.portal-halo-two { width: 310px; height: 310px; border-style: dashed; animation: spin 12s linear infinite reverse; }
.magic-cube { position: relative; width: 236px; height: 275px; transform: rotate(-2deg); filter: drop-shadow(0 40px 28px rgba(7, 83, 57, .22)); animation: float 5s ease-in-out infinite; }
.cube-top, .cube-left, .cube-right {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
.cube-top { top: 18px; left: 36px; width: 164px; height: 92px; transform: skewY(-28deg) rotate(30deg); background: #dffff0; border: 2px solid var(--ink); }
.cube-left { top: 101px; left: 23px; width: 105px; height: 145px; transform: skewY(30deg); background: #38d699; border: 2px solid var(--ink); }
.cube-right { top: 101px; right: 4px; width: 105px; height: 145px; transform: skewY(-30deg); background: #0c8460; border: 2px solid var(--ink); }
.magic-cube i { border: 1px solid rgba(7, 28, 22, .35); background: rgba(255, 255, 255, .18); }
.cube-top i:nth-child(2), .cube-left i:nth-child(3) { background: rgba(32, 214, 232, .45); }
.cube-right i:nth-child(2), .cube-top i:nth-child(3) { background: rgba(178, 69, 245, .25); }
.cube-core { position: absolute; z-index: 3; top: 117px; left: 87px; width: 66px; height: 66px; display: grid; place-items: center; color: #fff; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 24px var(--cyan); font-size: 30px; font-weight: 900; transform: rotate(45deg); }
.cube-core span { transform: rotate(-45deg); }
.pixel-spark { position: absolute; width: 10px; height: 10px; background: var(--pink); box-shadow: 28px 17px 0 var(--cyan), -24px 43px 0 var(--mint-500); animation: blink 2.4s steps(2) infinite; }
.spark-a { top: 80px; right: 15%; }
.spark-b { bottom: 90px; left: 15%; animation-delay: -.8s; }
.spark-c { top: 42%; right: 4%; animation-delay: -1.5s; }
.hero-art-label { position: absolute; bottom: 12px; margin: 0; padding: 7px 13px; color: var(--mint-600); background: rgba(223, 251, 234, .86); border-left: 3px solid var(--mint-500); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.hero-scroll { position: absolute; bottom: 26px; left: clamp(24px, 8vw, 130px); display: flex; align-items: center; gap: 11px; color: var(--ink-3); font-size: 11px; letter-spacing: .18em; writing-mode: vertical-rl; }
.hero-scroll span { width: 1px; height: 44px; background: var(--ink); animation: scrollLine 1.8s ease-in-out infinite; }

.marquee { overflow: hidden; color: #fff; background: var(--ink); border-block: 1px solid var(--ink); transform: rotate(-1.2deg) scale(1.02); }
.marquee > div { width: max-content; display: flex; align-items: center; gap: 28px; padding: 13px 0; animation: marquee 24s linear infinite; }
.marquee span { font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.marquee i { color: var(--mint-300); font-style: normal; font-size: 9px; }

.section { max-width: 1400px; margin: 0 auto; padding: clamp(90px, 10vw, 150px) clamp(24px, 6vw, 88px); }
.section-index { margin: 0 0 18px; color: var(--mint-600); font-family: var(--display); font-size: 13px; font-weight: 900; letter-spacing: .13em; }
.section-heading h2, .pet-preview h2 { font-size: clamp(45px, 5.6vw, 82px); }
.section-heading.horizontal { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.about-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(60px, 10vw, 160px); align-items: start; margin-top: 68px; }
.about-story { max-width: 590px; padding-left: clamp(0px, 4vw, 58px); }
.about-story .lead { margin-top: 0; color: var(--ink); font-size: clamp(21px, 2vw, 29px); font-weight: 800; line-height: 1.45; }
.about-story p:not(.lead) { color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--ink); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.server-panel { position: relative; color: #fff; background: var(--ink); padding: 38px; box-shadow: 14px 14px 0 var(--mint-200); }
.server-panel::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(127, 224, 173, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 224, 173, .35) 1px, transparent 1px); background-size: 24px 24px; }
.server-panel > * { position: relative; }
.panel-corners::before, .panel-corners::after { content: ""; position: absolute; z-index: 2; width: 30px; height: 30px; border-color: var(--cyan); }
.panel-corners::before { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.panel-corners::after { right: 12px; bottom: 12px; border-right: 2px solid; border-bottom: 2px solid; }
.panel-kicker { margin: 0 0 16px; color: var(--mint-300); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.server-panel dl { margin: 0; }
.server-panel dl div { display: flex; justify-content: space-between; gap: 30px; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.server-panel dt { color: rgba(255, 255, 255, .55); font-size: 13px; }
.server-panel dd { margin: 0; font-weight: 800; }
.panel-note { margin: 22px 0 0; color: rgba(255, 255, 255, .52); font-size: 12px; }

.news { max-width: 1240px; }
.news-list { margin-top: 58px; border-top: 1px solid var(--line); }
.news-item { position: relative; display: grid; grid-template-columns: 105px minmax(0, 1fr) 40px; align-items: center; gap: 30px; padding: 30px 20px; border-bottom: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
a.news-item:hover { background: rgba(186, 242, 209, .35); transform: translateX(6px); }
.news-item time { min-height: 66px; padding-right: 24px; border-right: 1px solid var(--line); }
.news-item time b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.news-item time span { color: var(--ink-3); font-size: 11px; }
.news-item .tag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; color: var(--mint-600); background: var(--mint-100); font-size: 10px; font-weight: 800; }
.news-item h3 { margin: 0; font-size: clamp(17px, 1.65vw, 23px); }
.news-item p { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.news-item > strong { color: var(--mint-500); font-size: 24px; }
.news-featured::before { content: "新"; position: absolute; top: 0; left: -28px; padding: 2px 7px; color: #fff; background: var(--violet); font-size: 10px; font-weight: 900; }
.is-pending { opacity: .62; }

.pet-preview { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, .8fr); align-items: center; gap: 80px; color: #fff; background: var(--ink); overflow: hidden; }
.pet-preview-copy { max-width: 650px; margin-left: max(0px, calc((100vw - 1400px) / 2)); }
.pet-preview-copy > p:not(.section-index) { max-width: 520px; margin: 28px 0 36px; color: rgba(255, 255, 255, .67); }
.pet-preview .section-index { color: var(--mint-300); }
.pet-preview .button-primary { color: var(--ink); background: var(--mint-300); border-color: var(--mint-300); box-shadow: 6px 6px 0 var(--violet); }
.pet-orbit { position: relative; min-height: 470px; display: grid; place-items: center; }
.orbit-line { position: absolute; border: 1px solid rgba(127, 224, 173, .24); border-radius: 50%; }
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 290px; height: 290px; border-style: dashed; animation: spin 18s linear infinite; }
.pet-core { z-index: 2; width: 180px; height: 180px; display: grid; place-content: center; text-align: center; background: rgba(223, 251, 234, .08); border: 1px solid var(--mint-300); transform: rotate(45deg); box-shadow: 0 0 60px rgba(32, 214, 232, .16); }
.pet-core > * { transform: rotate(-45deg); }
.pet-core strong { font-family: var(--display); font-size: 58px; line-height: 1; }
.pet-core span { color: var(--mint-300); font-size: 12px; letter-spacing: .15em; }
.pet-glyph { position: absolute; z-index: 3; width: 82px; height: 82px; display: grid; place-content: center; text-align: center; background: var(--mint-100); border: 2px solid var(--ink); color: var(--ink); box-shadow: 6px 6px 0 var(--cyan); }
.pet-glyph span { font-size: 25px; font-weight: 900; line-height: 1; }
.pet-glyph small { margin-top: 4px; font-size: 10px; }
.glyph-one { top: 5%; left: 15%; transform: rotate(-7deg); }
.glyph-two { right: 9%; top: 28%; transform: rotate(8deg); box-shadow-color: var(--pink); }
.glyph-three { bottom: 5%; left: 27%; transform: rotate(4deg); box-shadow-color: var(--violet); }

.start-guide { max-width: 1240px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 58px 0 0; padding: 1px; list-style: none; background: var(--line); }
.steps li { min-height: 210px; padding: 30px; background: var(--paper); }
.steps b { display: block; color: var(--mint-500); font-family: var(--display); font-size: 30px; }
.steps span { display: block; margin-top: 44px; color: var(--ink-3); }
.steps strong { display: block; color: var(--ink); font-size: 18px; }
.cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 30px; margin-top: 54px; padding: 30px 36px; color: #fff; background: var(--mint-600); box-shadow: 10px 10px 0 var(--mint-200); }
.cta-card span { grid-column: 1; font-size: 12px; opacity: .7; }
.cta-card strong { grid-column: 1; font-size: clamp(25px, 3vw, 42px); line-height: 1.1; }
.cta-card b { grid-row: 1 / 3; grid-column: 2; font-size: 44px; transition: transform .2s ease; }
.cta-card:hover b { transform: translate(5px, -5px); }

.site-footer { display: grid; grid-template-columns: 220px 1fr auto auto; align-items: center; gap: 28px; padding: 38px clamp(24px, 6vw, 88px); border-top: 1px solid var(--line); background: #fff; }
.site-footer img { width: 210px; }
.site-footer p { margin: 0; color: var(--ink-3); font-size: 12px; }
.site-footer nav { display: flex; gap: 20px; font-size: 12px; font-weight: 800; }
.site-footer small { color: var(--ink-3); font-size: 11px; }
.site-footer.compact { margin-top: 50px; }

/* 宠物资料页 */
.pets-hero { min-height: 590px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, .75fr); align-items: center; gap: 80px; padding: 140px clamp(24px, 8vw, 130px) 70px; background: linear-gradient(115deg, rgba(223, 251, 234, .55), rgba(255, 255, 255, .42)); border-bottom: 1px solid var(--line); }
.pets-hero-title { max-width: 700px; }
.pets-hero h1 { font-size: clamp(58px, 7vw, 98px); }
.pets-hero-title > p:last-child { max-width: 590px; margin-top: 28px; color: var(--ink-2); }
.pet-search { position: relative; padding: 34px; background: var(--ink); color: #fff; box-shadow: 12px 12px 0 var(--mint-300); }
.pet-search::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.pet-search label { display: block; margin-bottom: 10px; color: var(--mint-300); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.pet-search > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: #fff; color: var(--ink); }
.pet-search > div span { padding-left: 16px; font-size: 24px; }
.pet-search input { min-width: 0; height: 58px; border: 0; outline: 0; padding: 0 14px; color: var(--ink); background: transparent; }
.pet-search button { align-self: stretch; border: 0; padding: 0 22px; color: var(--ink); background: var(--mint-300); font-weight: 900; cursor: pointer; }
.pet-search > p { margin: 18px 0 0; color: rgba(255, 255, 255, .56); font-size: 12px; }
.pet-search > p strong { color: #fff; font-family: var(--display); font-size: 20px; }
.pet-browser { max-width: 1480px; }
.pet-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.toolbar-title h2 { font-size: clamp(38px, 4vw, 60px); }
.reset-button { padding: 9px 14px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.reset-button:hover { border-color: var(--mint-500); background: var(--mint-100); }
.filters { display: grid; grid-template-columns: 1fr 1fr 170px 170px; gap: 22px; margin-top: 40px; padding: 26px; border: 1px solid var(--line); background: rgba(255, 255, 255, .76); box-shadow: var(--shadow); }
.filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filters legend, .select-filter label { display: block; margin-bottom: 10px; color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 6px 11px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.select-filter select { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 0; padding: 0 10px; color: var(--ink); background: #fff; outline: 0; }
.select-filter select:focus { border-color: var(--mint-500); }
.results-head { display: flex; justify-content: space-between; gap: 20px; margin: 42px 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.results-head p { margin: 0; }
.results-head strong { color: var(--ink); font-family: var(--display); font-size: 19px; }
.pet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pet-card { position: relative; min-width: 0; padding: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); cursor: pointer; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
button.pet-card { width: 100%; color: var(--ink); font: inherit; text-align: left; }
.pet-card::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 58px; height: 58px; background: var(--pet-color, var(--mint-200)); transform: rotate(45deg); opacity: .5; }
.pet-card:hover { z-index: 2; border-color: var(--mint-500); transform: translateY(-5px); box-shadow: 0 16px 30px rgba(7, 71, 49, .12); }
.pet-card-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--mint-100); border-bottom: 1px solid var(--line); }
.pet-card-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(7, 28, 22, .12)); pointer-events: none; }
.pet-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.pet-card:hover .pet-card-photo img { transform: scale(1.035); }
.pet-card-photo-id { position: absolute; z-index: 1; left: 12px; bottom: 10px; padding: 5px 8px; color: #fff; background: rgba(7, 28, 22, .86); font-family: var(--display); font-size: 9px; letter-spacing: .12em; }
.pet-card-body { position: relative; z-index: 1; display: block; padding: 17px; }
.pet-card-top { display: flex; gap: 13px; align-items: center; }
.pet-card h3 { min-width: 0; margin: 0; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-card-id { display: block; margin-top: 3px; color: var(--ink-3); font-family: var(--display); font-size: 10px; letter-spacing: .08em; }
.pet-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.pet-element[data-pet-element="g"] { --element-color: #238b45; --element-ink: #176332; --element-tint: #e6f5e9; --element-edge: #238b45; }
.pet-element[data-pet-element="w"] { --element-color: #187fc4; --element-ink: #12598c; --element-tint: #e5f2fd; --element-edge: #187fc4; }
.pet-element[data-pet-element="f"] { --element-color: #db3b3b; --element-ink: #a62626; --element-tint: #ffebeb; --element-edge: #db3b3b; }
.pet-element[data-pet-element="e"] { --element-color: #f2c500; --element-ink: #735900; --element-tint: #fff7cc; --element-edge: #8b7100; }
.pet-tags .pet-element { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; background: var(--element-tint); color: var(--element-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pet-tags .pet-element::before { content: ""; width: 8px; height: 8px; background: var(--element-color); box-shadow: inset 0 0 0 1px var(--element-edge); }
.pet-score { display: flex; align-items: end; justify-content: space-between; margin-top: 18px; }
.pet-score small { color: var(--ink-3); font-size: 10px; }
.pet-score strong { font-family: var(--display); font-size: 29px; line-height: 1; }
.mini-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 13px; }
.mini-stats span { height: 4px; background: var(--line); overflow: hidden; }
.mini-stats i { display: block; height: 100%; background: var(--pet-color, var(--mint-500)); }
.empty-state { padding: 90px 20px; text-align: center; border: 1px dashed var(--line); }
.empty-state span { color: var(--mint-500); font-size: 50px; }
.empty-state h3 { margin: 10px 0 0; }
.empty-state p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }

.pet-data-error {
  grid-column: 1 / -1;
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 40px;
  color: var(--ink-3);
  text-align: center;
  border: 1px solid rgba(166, 70, 70, .2);
  background: rgba(108, 27, 27, .04);
}
.pet-data-error span { color: #a64646; font-size: 35px; }
.pet-data-error h3 { margin: 0; color: var(--ink); }
.pet-data-error p { margin: 0; font-size: 13px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 38px; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pagination button:hover, .pagination button.is-current { color: #fff; background: var(--ink); border-color: var(--ink); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.data-credit { margin: 42px 0 0; color: var(--ink-3); font-size: 11px; text-align: center; }
.data-credit a { color: var(--mint-600); border-bottom: 1px solid currentColor; }

.pet-dialog { width: min(860px, calc(100vw - 30px)); max-height: min(860px, calc(100vh - 30px)); padding: 0; border: 0; color: var(--ink); background: transparent; overflow: visible; }
.pet-dialog::backdrop { background: rgba(2, 18, 13, .74); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; max-height: calc(100vh - 30px); overflow: auto; padding: 34px; background: var(--paper); border: 1px solid var(--mint-300); box-shadow: 12px 12px 0 rgba(127, 224, 173, .4); }
.dialog-close { position: sticky; z-index: 4; top: 0; float: right; width: 40px; height: 40px; border: 0; color: #fff; background: var(--ink); font-size: 25px; cursor: pointer; }
.dialog-head { display: flex; align-items: center; gap: 24px; padding-right: 50px; }
.dialog-portrait { width: 154px; height: 154px; flex: 0 0 154px; overflow: hidden; background: var(--mint-100); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--pet-color); }
.dialog-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dialog-head h2 { margin: 0; font-size: 30px; line-height: 1.2; }
.dialog-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 12px; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.dialog-section { padding: 18px; border: 1px solid var(--line); background: #fff; }
.dialog-section.is-wide { grid-column: 1 / -1; }
.dialog-section h3 { margin: 0 0 13px; color: var(--mint-600); font-size: 11px; letter-spacing: .13em; }
.stat-row { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 8px; margin: 8px 0; font-size: 12px; }
.stat-track { height: 6px; background: var(--mint-100); }
.stat-track i { display: block; height: 100%; background: var(--pet-color); }
.element-bars { display: grid; gap: 14px; }
.element-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 13px; }
.element-row > span:first-child { color: var(--element-ink); font-weight: 700; }
.element-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.element-track { display: block; height: 16px; overflow: hidden; border-radius: 3px; background: #edf1ee; }
.element-track i { display: block; height: 100%; border-radius: inherit; background: var(--element-color); box-shadow: inset 0 0 0 1px var(--element-edge); }
.detail-list { margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.detail-list div:last-child { border: 0; }
.detail-list dt { color: var(--ink-3); }
.detail-list dd { margin: 0; text-align: right; font-weight: 700; }
.dialog-text { margin: 0; color: var(--ink-2); font-size: 13px; white-space: pre-line; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .15s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }
@keyframes scrollLine { 0%, 100% { transform: scaleY(.25); transform-origin: top; } 50% { transform: scaleY(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr .78fr; padding-inline: 6vw; }
  .hero-art { transform: scale(.82); }
  .about-layout { grid-template-columns: 1fr 1fr; gap: 60px; }
  .pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .pet-preview { grid-template-columns: 1fr .8fr; }
  .site-footer { grid-template-columns: 180px 1fr auto; }
  .site-footer small { display: none; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 125px 24px 90px; }
  .hero h1 { font-size: clamp(52px, 15vw, 82px); }
  .hero-art { min-height: 430px; order: -1; margin: -60px 0 -50px; transform: scale(.72); }
  .hero::before { width: 100%; clip-path: polygon(40% 0, 100% 0, 100% 65%, 10% 50%); }
  .hero-scroll { display: none; }
  .hero-meta { gap: 20px; }
  .section { padding: 90px 24px; }
  .about-layout { grid-template-columns: 1fr; margin-top: 45px; }
  .about-story { padding-left: 0; }
  .section-heading.horizontal { align-items: start; flex-direction: column; }
  .news-item { grid-template-columns: 76px 1fr 24px; gap: 15px; padding-inline: 0; }
  .news-item time { padding-right: 12px; }
  .news-item p { display: none; }
  .news-featured::before { display: none; }
  .pet-preview { grid-template-columns: 1fr; gap: 20px; }
  .pet-preview-copy { margin-left: 0; }
  .pet-orbit { transform: scale(.85); margin-block: -20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 160px; }
  .steps span { margin-top: 25px; }
  .site-footer, .site-footer.compact { grid-template-columns: 1fr; justify-items: start; gap: 15px; }
  .site-footer img { width: 190px; }
  .pets-hero { grid-template-columns: 1fr; gap: 45px; padding: 120px 24px 70px; }
  .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; padding: 20px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-section.is-wide { grid-column: auto; }
}

@media (max-width: 520px) {
  .hero h1, .pets-hero h1 { font-size: 49px; }
  .hero h1 em, .pets-hero h1 em { -webkit-text-stroke-width: 1px; text-shadow: 3px 3px 0 var(--mint-300); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-art { min-height: 330px; transform: scale(.56); margin: -80px 0 -70px; }
  .hero-meta div { min-width: 104px; }
  .section-heading h2, .pet-preview h2 { font-size: 42px; }
  .server-panel { padding: 30px 22px; }
  .news-item { grid-template-columns: 57px minmax(0, 1fr) 18px; }
  .news-item time b { font-size: 26px; }
  .news-item h3 { font-size: 15px; }
  .pet-preview { padding-inline: 20px; }
  .pet-orbit { min-height: 380px; transform: scale(.68); margin: -60px -40px; }
  .cta-card { padding: 24px; }
  .pet-search { padding: 22px; }
  .pet-search > div { grid-template-columns: auto 1fr; }
  .pet-search button { grid-column: 1 / -1; height: 46px; }
  .pet-grid { grid-template-columns: 1fr; }
  .pet-toolbar { align-items: start; flex-direction: column; }
  .results-head { align-items: start; flex-direction: column; }
  .dialog-shell { padding: 22px; }
  .dialog-head { align-items: start; flex-direction: column; }
  .dialog-portrait { width: min(100%, 260px); height: auto; aspect-ratio: 1; flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
