:root {
  --ink: #102f38;
  --ink-soft: #214b56;
  --paper: #eef7f2;
  --surface: #fffdf8;
  --surface-2: #ffffff;
  --muted: #58727a;
  --line: #d5e3dd;
  --coral: #ff735c;
  --yellow: #ffd65c;
  --mint: #c9f2d8;
  --sky: #bfe7ff;
  --violet: #d8d0ff;
  --pink: #ffd2e1;
  --lime: #d6f0b5;
  --shadow: 7px 7px 0 var(--ink);
  --radius: 28px;
  --display: "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px;
  color: var(--surface); background: var(--ink); transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -2; width: 34rem; height: 34rem; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.ambient--one { top: -17rem; right: -12rem; background: radial-gradient(circle, rgba(255,214,92,.42), rgba(255,214,92,0) 68%); }
.ambient--two { top: 48vh; left: -19rem; background: radial-gradient(circle, rgba(191,231,255,.52), rgba(191,231,255,0) 69%); }
.dot-field {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .38;
  background-image: radial-gradient(rgba(16,47,56,.13) .7px, transparent .7px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.topbar {
  position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; width: min(1480px, calc(100vw - 64px)); margin: 0 auto; padding: 24px 0;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 12px; }
.brand-mark { position: relative; display: block; width: 44px; height: 44px; }
.brand-face {
  position: absolute; inset: 7px 3px 1px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 2px solid var(--ink); border-radius: 50% 50% 44% 44%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
}
.brand-face i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.brand-ear { position: absolute; top: 0; z-index: -1; width: 15px; height: 20px; border: 2px solid var(--ink); background: var(--yellow); }
.brand-ear--left { left: 2px; border-radius: 4px 16px 4px 14px; transform: rotate(-18deg); }
.brand-ear--right { right: 2px; border-radius: 16px 4px 14px 4px; transform: rotate(18deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font: 800 16px/1 var(--display); letter-spacing: .08em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.topnav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.topnav a { position: relative; }
.topnav a::after {
  position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; content: ""; background: var(--coral);
  transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease);
}
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-status {
  display: inline-flex; align-items: center; justify-self: end; gap: 9px; padding: 9px 13px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); box-shadow: 3px 3px 0 var(--ink);
  font: 700 10px/1 var(--mono); letter-spacing: .08em;
}
.top-status span { width: 8px; height: 8px; border-radius: 50%; background: #33c982; box-shadow: 0 0 0 4px rgba(51,201,130,.14); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
  gap: clamp(48px, 6vw, 100px); align-items: center; width: min(1480px, calc(100vw - 64px));
  min-height: 780px; margin: 0 auto; padding: 54px 0 100px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--ink-soft);
  font: 700 11px/1.4 var(--mono); letter-spacing: .12em;
}
.eyebrow span { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); }
.hero h1 { max-width: 820px; margin: 0; font-family: var(--display); font-size: clamp(3.7rem, 6.4vw, 7.4rem); font-weight: 900; line-height: .98; letter-spacing: -.07em; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-lede { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; min-width: 190px; padding: 15px 17px;
  border: 2px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 180ms ease;
}
.button:hover { transform: translate(-2px, -2px); }
.button--primary { color: var(--surface); background: var(--ink); box-shadow: 5px 5px 0 var(--coral); }
.button--primary:hover { box-shadow: 7px 7px 0 var(--coral); }
.button--ghost { background: var(--surface); box-shadow: 5px 5px 0 var(--yellow); }
.button--ghost:hover { box-shadow: 7px 7px 0 var(--yellow); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; margin: 58px 0 0; padding-top: 22px; border-top: 2px solid rgba(16,47,56,.12); }
.hero-stats div { padding-right: 20px; border-right: 1px solid rgba(16,47,56,.14); }
.hero-stats div + div { padding-left: 22px; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font: 800 clamp(22px, 2.3vw, 34px)/1 var(--display); }
.hero-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.hero-shelf {
  position: relative; min-height: 620px; overflow: hidden; border: 3px solid var(--ink); border-radius: 38px;
  background: radial-gradient(circle at 80% 14%, rgba(255,214,92,.55), transparent 25%), radial-gradient(circle at 16% 82%, rgba(191,231,255,.4), transparent 31%), linear-gradient(145deg, #183d47, #0e2b34);
  box-shadow: 10px 10px 0 var(--ink);
}
.hero-shelf::before { position: absolute; inset: 0; content: ""; opacity: .38; background-image: radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px); background-size: 18px 18px; }
.shelf-note { position: absolute; top: 30px; left: 30px; z-index: 3; display: flex; flex-direction: column; gap: 8px; max-width: 250px; color: var(--surface); }
.shelf-note span { color: var(--yellow); font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.shelf-note strong { font: 800 22px/1.35 var(--display); }
.mini-card { position: absolute; z-index: 2; width: 215px; padding: 12px; border: 2px solid var(--ink); border-radius: 25px; box-shadow: 6px 6px 0 var(--ink); transition: transform 400ms var(--ease); }
.mini-card:hover { transform: translateY(-9px) rotate(1deg); }
.mini-card--mint { top: 145px; left: 8%; background: var(--mint); transform: rotate(-7deg); }
.mini-card--coral { top: 212px; right: 7%; background: #ffd2c6; transform: rotate(7deg); }
.mini-card--sky { bottom: 34px; left: 23%; background: var(--sky); transform: rotate(-3deg); }
.mini-card img { width: 100%; height: 165px; object-fit: contain; }
.mini-card > div { display: flex; align-items: end; justify-content: space-between; padding: 7px 4px 2px; }
.mini-card small { color: rgba(16,47,56,.66); font: 700 9px/1 var(--mono); letter-spacing: .1em; }
.mini-card strong { font: 800 18px/1 var(--display); }
.mini-index { position: absolute; top: 11px; left: 12px; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); font: 700 10px/1 var(--mono); }
.shelf-tag { position: absolute; right: 26px; bottom: 26px; z-index: 3; display: grid; width: 92px; height: 92px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); text-align: center; font: 800 12px/1.25 var(--mono); letter-spacing: .08em; transform: rotate(8deg); }
.deck { width: min(1480px, calc(100vw - 64px)); margin: 0 auto; padding: 100px 0 130px; }
.deck-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; margin-bottom: 34px; }
.deck-heading h2, .how-copy h2 { margin: 0; font: 900 clamp(2.7rem, 4.5vw, 5.3rem)/1.08 var(--display); letter-spacing: -.065em; }
.deck-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.filter-bar { display: flex; gap: 9px; padding: 9px; overflow-x: auto; border: 2px solid var(--ink); border-radius: 20px; background: var(--surface); box-shadow: 5px 5px 0 var(--ink); scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 9px 14px; border: 2px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease); }
.filter-chip:hover { color: var(--ink); border-color: var(--ink); }
.filter-chip.is-active { color: var(--surface); border-color: var(--ink); background: var(--ink); }
.deck-meta { display: flex; align-items: center; justify-content: space-between; margin: 18px 4px 22px; color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .06em; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.agent-card { min-width: 0; height: 570px; perspective: 1600px; transition: opacity 250ms ease, transform 250ms var(--ease); }
.agent-card.is-hidden { display: none; }
.agent-card.is-picked { animation: cardPop 700ms var(--ease); }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 700ms var(--ease); }
.agent-card.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
button.card-front { padding: 0; text-align: left; cursor: pointer; }
.card-front::after { position: absolute; inset: 8px; pointer-events: none; content: ""; border: 1px dashed rgba(16,47,56,.15); border-radius: 21px; }
.card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.card-number { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--card-color); font: 700 10px/1 var(--mono); }
.card-type { color: var(--ink-soft); font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.pet-stage { position: relative; display: grid; height: 218px; flex: 0 0 auto; place-items: center; margin: 0 14px; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: var(--card-color); }
.pet-stage::before, .pet-stage::after { position: absolute; content: ""; border: 2px solid rgba(16,47,56,.2); border-radius: 50%; }
.pet-stage::before { width: 150px; height: 150px; }
.pet-stage::after { top: 16px; right: 20px; width: 21px; height: 21px; border-radius: 50%; background: rgba(255,255,255,.45); }
.stage-ring { position: absolute; bottom: -54px; width: 260px; height: 110px; border: 2px solid rgba(16,47,56,.17); border-radius: 50%; }
.pet-stage img { position: relative; z-index: 2; width: min(92%, 220px); height: 205px; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(16,47,56,.08)); transition: transform 500ms var(--ease); }
.card-front:hover .pet-stage img { transform: translateY(-7px) rotate(-2deg) scale(1.035); }
.pet-copy { display: flex; flex: 1; flex-direction: column; padding: 19px 20px 12px; }
.species { color: var(--accent); font: 700 10px/1 var(--mono); letter-spacing: .07em; }
.pet-title { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font: 900 clamp(1.65rem, 2vw, 2.15rem)/1 var(--display); letter-spacing: -.045em; }
.pet-title small { color: var(--muted); font: 700 10px/1 var(--body); letter-spacing: .02em; }
.pet-desc { display: block; min-height: 46px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.skill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.skill-row i { padding: 5px 8px; border: 1px solid rgba(16,47,56,.18); border-radius: 999px; background: color-mix(in srgb, var(--card-color) 45%, white); font-size: 9px; font-style: normal; font-weight: 700; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 14px; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card-color); font-size: 10px; }
.card-foot > span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card-foot b { flex: 0 0 auto; font-size: 10px; }
.card-back { padding: 24px; background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.05)), var(--card-color); transform: rotateY(180deg); }
.back-label { color: var(--accent); font: 700 10px/1 var(--mono); letter-spacing: .1em; }
.card-back h3 { margin: 16px 0 20px; font: 900 clamp(1.45rem, 2.2vw, 2rem)/1.2 var(--display); letter-spacing: -.045em; }
.card-back ul { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.card-back li { position: relative; padding-left: 19px; font-size: 12px; font-weight: 700; line-height: 1.55; }
.card-back li::before { position: absolute; top: .45em; left: 0; width: 8px; height: 8px; content: ""; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); }
.prompt-box { margin-top: auto; padding: 15px; border: 2px solid var(--ink); border-radius: 16px; background: rgba(255,253,248,.88); }
.prompt-box small { color: var(--accent); font: 700 9px/1 var(--mono); letter-spacing: .08em; }
.prompt-box p { margin: 9px 0 0; font-size: 12px; font-weight: 700; line-height: 1.7; }
.back-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.back-actions button { padding: 11px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); font-size: 10px; font-weight: 800; cursor: pointer; }
.back-actions button:first-child { color: var(--surface); background: var(--ink); }
.how-to { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 130px); width: min(1480px, calc(100vw - 64px)); margin: 0 auto; padding: 110px 0 130px; border-top: 2px solid rgba(16,47,56,.13); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 2px solid var(--ink); }
.how-steps li { min-height: 220px; padding: 24px 24px 0 0; border-right: 1px solid rgba(16,47,56,.16); }
.how-steps li + li { padding-left: 24px; }
.how-steps li:last-child { border-right: 0; }
.how-steps span { display: block; margin-bottom: 42px; color: var(--coral); font: 700 11px/1 var(--mono); }
.how-steps strong { display: block; font: 800 18px/1.4 var(--display); }
.how-steps p { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer { display: flex; align-items: center; justify-content: space-between; width: min(1480px, calc(100vw - 64px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid rgba(16,47,56,.14); color: var(--muted); font: 600 9px/1.4 var(--mono); letter-spacing: .1em; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 13px 17px; border: 2px solid var(--ink); border-radius: 999px; color: var(--surface); background: var(--ink); box-shadow: 4px 4px 0 var(--coral); font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 200ms ease, transform 260ms var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }
@keyframes cardPop { 0%,100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-12px) rotate(-1deg); } 65% { transform: translateY(-5px) rotate(1deg); } }
@media (max-width: 1280px) { .card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1040px) {
  .topbar,.hero,.deck,.how-to,.footer { width: min(900px, calc(100vw - 48px)); }
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 35px; }
  .hero-copy { max-width: 820px; }
  .hero-shelf { width: min(760px,100%); min-height: 590px; margin: 0 auto; }
  .deck-heading,.how-to { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .topbar,.hero,.deck,.how-to,.footer { width: calc(100vw - 32px); }
  .topbar { padding: 16px 0; }
  .brand-copy small,.top-status { display: none; }
  .hero { gap: 48px; min-height: 0; padding: 28px 0 82px; }
  .hero h1 { font-size: clamp(3.3rem,15vw,5rem); }
  .hero-lede { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 42px; }
  .hero-stats div,.hero-stats div + div { display:flex; align-items:baseline; justify-content:space-between; padding:14px 0; border-right:0; border-bottom:1px solid rgba(16,47,56,.14); }
  .hero-stats div:last-child { border-bottom:0; }
  .hero-stats dd { margin:0; }
  .hero-shelf { min-height:550px; border-radius:30px; box-shadow:7px 7px 0 var(--ink); }
  .shelf-note { top:22px; left:22px; }
  .shelf-note strong { font-size:18px; }
  .mini-card { width:180px; }
  .mini-card img { height:135px; }
  .mini-card--mint { top:150px; left:4%; }
  .mini-card--coral { top:229px; right:3%; }
  .mini-card--sky { bottom:30px; left:13%; }
  .deck { padding:82px 0 100px; }
  .deck-heading { gap:20px; margin-bottom:28px; }
  .deck-heading h2,.how-copy h2 { font-size:clamp(2.5rem,12vw,3.6rem); }
  .filter-bar { margin-right:-16px; margin-left:-16px; padding:10px 16px; border-right:0; border-left:0; border-radius:0; box-shadow:none; }
  .deck-meta { align-items:flex-start; flex-direction:column; gap:7px; }
  .card-grid { grid-template-columns:1fr; gap:24px; }
  .agent-card { height:565px; }
  .how-to { gap:44px; padding:82px 0 100px; }
  .how-steps { grid-template-columns:1fr; }
  .how-steps li,.how-steps li + li { min-height:0; padding:24px 0 28px; border-right:0; border-bottom:1px solid rgba(16,47,56,.16); }
  .how-steps li:last-child { border-bottom:0; }
  .how-steps span { margin-bottom:22px; }
  .footer { align-items:flex-start; flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .card-inner { transition:none; }
}
