@import "https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap";

/* src/frontend/styles/indexes/renown.css */
:root {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  --bg: #06080d;
  --bg-2: #080b12;
  --surface-0: #0b0f17;
  --surface-1: #10151f;
  --surface-2: #161d29;
  --surface-inset: #ffffff05;
  --line: #96b4dc1a;
  --line-2: #96b4dc29;
  --line-strong: #96b4dc3d;
  --edge-hi: #ffffff0f;
  --text: #f3f6fb;
  --ink: #c2cad8;
  --muted: #79839a;
  --faint: #4d566b;
  --accent: #5fbeeb;
  --accent-bright: #8fd9ff;
  --accent-deep: #2f80b8;
  --accent-soft: #5fbeeb1f;
  --accent-line: #5fbeeb66;
  --accent-glow: #5fbeeb73;
  --hot: #ff4d72;
  --hot-bright: #ff7d97;
  --hot-soft: #ff4d721f;
  --hot-line: #ff4d726b;
  --r-common: #9aa4b8;
  --r-uncommon: #7ee787;
  --r-rare: #5fbeeb;
  --r-epic: #b48cff;
  --r-legendary: #ffb454;
  --r-mythic-a: #f0abfc;
  --r-mythic-b: #fbbf24;
  --ok: #7ee787;
  --warn: #ffcf5c;
  --danger: #ff8a8a;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --fs-display: clamp(40px, 6vw, 76px);
  --fs-h1: 32px;
  --fs-h2: 19px;
  --fs-h3: 15px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 11px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --radius: 12px;
  --shadow-1: 0 1px 0 var(--edge-hi) inset, 0 8px 24px #0000005c;
  --shadow-2: 0 1px 0 var(--edge-hi) inset, 0 18px 50px #00000080;
  --shadow: var(--shadow-2);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

:root[data-theme="light"] {
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #edf1f7;
  --surface-0: #fff;
  --surface-1: #f4f7fb;
  --surface-2: #e8eef6;
  --surface-inset: #162a4606;
  --line: #2541621c;
  --line-2: #2541622e;
  --line-strong: #25416247;
  --edge-hi: #fffc;
  --text: #111827;
  --ink: #344258;
  --muted: #68758a;
  --faint: #929caf;
  --accent: #147eb4;
  --accent-bright: #086c9f;
  --accent-deep: #075d8b;
  --accent-soft: #147eb41a;
  --accent-line: #147eb45c;
  --accent-glow: #147eb438;
  --shadow-1: 0 1px 0 #ffffffd9 inset, 0 8px 24px #24344b17;
  --shadow-2: 0 1px 0 #ffffffe6 inset, 0 18px 50px #24344b24;
}

:root[data-theme="light"] body {
  background-image: radial-gradient(1100px 520px at 50% -8%, #147eb41a, #0000 62%), linear-gradient(#0000 0 23px, #375a8209 23px 24px), linear-gradient(90deg, #0000 0 23px, #375a8209 23px 24px);
}

:root[data-theme="light"] .topbar {
  background: #ffffffdb;
}

* {
  box-sizing: border-box;
  margin: 0;
}

::selection {
  background: var(--accent-glow);
  color: #04121c;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font: var(--fs-body) / 1.55 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(1100px 520px at 50% -8%, #5fbeeb1a, #0000 62%), radial-gradient(800px 600px at 110% 110%, #ff4d720d, #0000 60%), linear-gradient(#0000 0 23px, #78a0d206 23px 24px), linear-gradient(90deg, #0000 0 23px, #78a0d206 23px 24px);
  background-size: auto, auto, 24px 24px, 24px 24px;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .12s var(--ease);
}

a:hover {
  color: var(--accent-bright);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
  line-height: 1.12;
}

.num, .score, .xp, .lvl, .rank, .stat .num, .profileScore .num, .tier .price, .attestWhen, .attestTrailAt, .summonProgress, .petSize {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.wrap {
  padding: var(--s-5) var(--s-5) var(--s-8);
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .wrap {
    padding: var(--s-4) var(--s-4) var(--s-7);
  }
}

.topbar {
  display: flex;
  align-items:  center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  margin: 0 0 var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px);
  position: sticky;
  z-index: 60;
  background: linear-gradient(#10151feb, #0b0f17d1);
  top: 10px;
}

.brand {
  display: inline-flex;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  align-items:  center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
}

.brand .logo {
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: transform .25s var(--ease);
}

.brand:hover .logo {
  transform: rotate(-12deg)scale(1.08);
}

.nav {
  display: flex;
  margin-left: var(--s-2);
  gap: 2px;
}

.nav button, .nav a {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .14s var(--ease), color .14s var(--ease);
  background: none;
  border: 0;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 500;
}

.nav button:hover, .nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav button.on, .nav a.on {
  color: var(--accent-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.authbox {
  display: flex;
  gap: var(--s-2);
  align-items:  center;
  margin-left: auto;
}

.headerAccountSlot {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  opacity: .45;
  width: 42px;
  height: 42px;
}

.siteHeader {
  min-height: 62px;
}

.primaryNav {
  align-items:  center;
}

.moreMenu, .accountMenu, .mobileNav {
  position: relative;
}

.moreMenu > summary, .mobileNav > summary, .accountMenu > summary {
  list-style: none;
  cursor: pointer;
}

.moreMenu > summary::-webkit-details-marker {
  display: none;
}

.mobileNav > summary::-webkit-details-marker {
  display: none;
}

.accountMenu > summary::-webkit-details-marker {
  display: none;
}

.moreMenu > summary {
  color: var(--muted);
  border-radius: var(--r-sm);
  font: 500 12px var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 13px;
}

.moreMenu > summary:hover, .moreMenu[open] > summary {
  color: var(--text);
  background: var(--surface-2);
}

.moreMenu.isActive > summary {
  color: var(--accent-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.moreMenu > div {
  position: absolute;
  z-index: 80;
  display: grid;
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  min-width: 170px;
  padding: 7px;
  top: calc(100% + 9px);
  left: 0;
}

.moreMenu > div a {
  white-space: nowrap;
  padding: 9px 10px;
}

.mobileNav {
  display: none;
}

.headerBack {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: 600 11px var(--font-display);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 11px;
}

.headerBack:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--accent-line);
}

.me {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: .02em;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .14s var(--ease), border-color .14s var(--ease);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
}

.me:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
}

.soundToggle {
  display: inline-flex;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .14s var(--ease), border-color .14s var(--ease);
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.soundToggle:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
}

.accountMenu > summary {
  display: flex;
  box-sizing: border-box;
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font: 600 12px var(--font-display);
  align-items:  center;
  gap: 9px;
  min-height: 42px;
  padding: 4px 9px 4px 5px;
}

.accountMenu[open] > summary, .accountMenu > summary:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
}

.accountAvatar {
  display: flex;
  overflow: hidden;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font: 700 13px var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
}

.accountAvatar .landingPetSprite {
  transform: scale(.82);
}

.accountChevron {
  color: var(--muted);
  transition: transform .14s var(--ease);
}

.accountMenu[open] .accountChevron {
  transform: rotate(180deg);
}

.accountMenuPanel {
  position: absolute;
  z-index: 90;
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  width: min(290px, 100vw - 32px);
  padding: 8px;
  top: calc(100% + 10px);
  right: 0;
}

.accountMenuIdentity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 9px 10px 12px;
}

.accountMenuIdentity strong, .accountMenuIdentity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountMenuIdentity strong {
  color: var(--text);
  font: 700 13px var(--font-display);
}

.accountMenuIdentity span {
  color: var(--muted);
  font-size: 11px;
}

.accountMenuPanel > a, .accountMenuPanel > button, .accountMenuPanel > .soundToggle {
  display: grid;
  grid-template-columns: 21px 1fr;
  color: var(--ink);
  border-radius: var(--r-sm);
  font: 600 12px var(--font-display);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  align-items:  center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}

.accountMenuPanel > a:hover, .accountMenuPanel > button:hover, .accountMenuPanel > .soundToggle:hover {
  color: var(--text);
  background: var(--surface-2);
}

.accountMenuDivider {
  background: var(--line);
  height: 1px;
  margin: 6px 3px;
}

.themeRow {
  display: flex;
  color: var(--ink);
  font: 600 12px var(--font-display);
  justify-content: space-between;
  align-items:  center;
  gap: 10px;
  padding: 7px 10px;
}

.themeRow > div {
  display: flex;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
}

.themeRow button {
  color: var(--muted);
  border-radius: var(--r-pill);
  font: 600 10px var(--font-display);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px 8px;
}

.themeRow button.on {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 1px 3px #0000001f;
}

.accountMenuPanel > .accountLogout {
  color: var(--danger);
}

.accountTitle {
  padding: var(--s-5) 0 var(--s-4);
}

.accountTitle h1 {
  margin: 6px 0;
  font-size: clamp(30px, 5vw, 48px);
}

.accountTitle p {
  color: var(--muted);
}

.adminLink {
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 11px;
}

.adminLink:hover {
  color: var(--accent-bright);
  border-color: var(--accent-line);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-2);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  letter-spacing: .03em;
  color: #04121c;
  cursor: pointer;
  transition: transform 80ms var(--ease), filter .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
  border: 0;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.solid {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #04121c;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: 0 6px 18px #5fbeeb47, inset 0 1px #ffffff4d;
}

.btn.solid:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px #5fbeeb6b, inset 0 1px #ffffff4d;
}

.btn.ghost {
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
}

.btn.hot {
  background: linear-gradient(180deg, var(--hot-bright), var(--hot));
  color: #1a0309;
  box-shadow: 0 6px 18px #ff4d724d, inset 0 1px #ffffff40;
}

.btn.gh {
  color: #fff;
  background: #1c2128;
  border: 1px solid #30363d;
}

.btn.gh:hover {
  background: #262c34;
}

.btn.gg {
  color: #fff;
  background: #1a73e8;
}

.btn.gg:hover {
  filter: brightness(1.06);
}

.btn.sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: .45;
  cursor: default;
  filter: none;
  box-shadow: none;
  transform: none;
}

.hero {
  text-align: center;
  margin: var(--s-7) 0 var(--s-5);
  position: relative;
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  line-height: .98;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 28px var(--accent-glow);
}

.tag {
  color: var(--muted);
  margin: var(--s-4) auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
}

.cta {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
  justify-content: center;
}

.landingKicker {
  display: block;
  color: var(--accent);
  font: 700 11px var(--font-mono);
  letter-spacing: .16em;
}

.landingHero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items:  center;
  gap: var(--s-7);
  padding: var(--s-7) 0 var(--s-8);
  overflow: clip;
  min-height: 610px;
}

.landingHero:before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 72% 43%, #5fbeeb24, #0000 30%), radial-gradient(circle at 80% 48%, #b48cff14, #0000 44%);
  inset: -120px -20vw 0;
}

.landingHero h1 {
  margin: 13px 0 var(--s-4);
  letter-spacing: -.055em;
  text-transform: uppercase;
  font-size: clamp(54px, 7.6vw, 96px);
  line-height: .88;
}

.landingHero h1 span {
  color: var(--accent-bright);
  text-shadow: 0 0 40px #5fbeeb4d;
}

.landingHeroCopy > p {
  color: var(--ink);
  max-width: 650px;
  font-size: 18px;
  line-height: 1.55;
}

.landingHeroActions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}

.landingInstall {
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-top: var(--s-4);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  background: #04070b;
  align-items:  center;
  gap: 10px;
  width: min(100%, 510px);
  padding: 12px 14px;
  box-shadow: inset 0 1px #ffffff09;
}

.landingInstall:hover {
  border-color: var(--accent-line);
}

.landingInstall code {
  overflow: hidden;
  color: var(--accent-bright);
  font: 12px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landingInstall > span:last-child {
  color: var(--muted);
  font: 700 10px var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.landingPrompt {
  color: var(--ok);
  font: 700 13px var(--font-mono);
}

.landingFinePrint {
  color: var(--muted) !important;
  margin-top: 10px !important;
  font-size: 11px !important;
}

.landingHeroGame {
  position: relative;
  min-height: 450px;
}

.landingHeroPet {
  position: absolute;
  display: flex;
  background: radial-gradient(circle, #5fbeeb2b, #5fbeeb08 48%, #0000 70%);
  border: 1px solid #5fbeeb33;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 300px;
  height: 300px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 90px #5fbeeb1a, inset 0 0 50px #5fbeeb0a;
}

.landingHeroPet:before, .landingHeroPet:after {
  content: "";
  position: absolute;
  animation: landingOrbit 28s linear infinite;
  border: 1px dashed #5fbeeb29;
  border-radius: 50%;
}

.landingHeroPet:before {
  inset: -28px;
}

.landingHeroPet:after {
  animation-direction: reverse;
  animation-duration: 38s;
  inset: -58px;
}

.landingHeroPet > span:last-child {
  position: absolute;
  color: var(--r-legendary);
  font: 700 10px var(--font-display);
  letter-spacing: .14em;
  bottom: 20px;
}

.landingPetSprite {
  display: inline-flex;
  image-rendering: pixelated;
  flex: none;
  justify-content: center;
  align-items:  center;
}

@keyframes landingOrbit {
  to {
    transform: rotate(360deg);
  }
}

.landingStatCard {
  position: absolute;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(12px);
  background: #0b0f17e6;
  min-width: 115px;
  padding: 12px 14px;
}

.landingStatCard strong {
  display: block;
  color: var(--text);
  font: 700 23px / 1 var(--font-display);
}

.landingStatCard span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}

.landingStatSkills {
  top: 28px;
  left: 0;
}

.landingStatAchievements {
  top: 80px;
  right: -8px;
}

.landingStatPets {
  bottom: 26px;
  right: 32px;
}

.landingSectionHead {
  display: flex;
  justify-content: space-between;
  align-items:  flex-end;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}

.landingSectionHead h2, .landingWhy h2, .landingFinal h2 {
  letter-spacing: -.025em;
  margin-top: 7px;
  font-size: clamp(29px, 4vw, 45px);
}

.landingStart {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line);
}

.landingSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.landingSteps article {
  position: relative;
  padding: var(--s-5);
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-1), var(--surface-0));
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px var(--edge-hi);
  min-width: 0;
}

.landingSteps article > span {
  position: absolute;
  color: #8fd9ff1f;
  font: 700 44px var(--font-display);
  top: 9px;
  right: 14px;
}

.landingSteps h3 {
  margin-bottom: var(--s-4);
  font-size: 20px;
}

.landingSteps code {
  display: block;
  overflow: hidden;
  color: var(--accent-bright);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #05070b;
  padding: 9px 10px;
  font-size: 11px;
}

.landingSteps p {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.landingLive {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.liveSignal {
  display: inline-flex;
  color: var(--ok);
  font: 700 11px var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  align-items:  center;
  gap: 7px;
}

.liveSignal i {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: livePulse 1.8s ease-in-out infinite;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

@keyframes livePulse {
  50% {
    opacity: .35;
    transform: scale(.78);
  }
}

.landingTicker {
  overflow: hidden;
  margin: 0 calc(var(--s-5) * -1) var(--s-5);
  padding: 4px var(--s-5) 12px;
  mask-image: linear-gradient(90deg, #0000, #000 5% 95%, #0000);
}

.landingTickerTrack, .landingTickerGroup {
  display: flex;
  gap: var(--s-3);
  width: max-content;
}

.landingTickerTrack {
  animation: landingTicker 54s linear infinite;
}

.landingTicker:hover .landingTickerTrack {
  animation-play-state: paused;
}

@keyframes landingTicker {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.landingPetDrop {
  display: grid;
  grid-template-columns: 68px 190px;
  align-items:  center;
  gap: var(--s-3);
  color: inherit;
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  text-decoration: none;
  padding: 10px 14px 10px 7px;
}

.landingPetDrop:hover {
  color: inherit;
  border-color: var(--accent-line);
}

.landingPetDrop span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.landingPetDrop strong {
  overflow: hidden;
  color: var(--text);
  font: 700 13px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landingPetDrop small {
  color: var(--accent);
  font-size: 10px;
}

.landingPetDrop em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.landingUnlockGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.landingUnlock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items:  center;
  gap: var(--s-3);
  color: inherit;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  min-width: 0;
  padding: 13px;
}

.landingUnlock:hover {
  color: inherit;
  background: var(--surface-1);
  border-color: var(--line-strong);
}

.landingUnlockIcon {
  display: flex;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 34px;
  height: 34px;
}

.landingUnlock > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.landingUnlock small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.landingUnlock strong {
  overflow: hidden;
  color: var(--text);
  font: 600 12px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landingUnlock em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.landingLiveLinks {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-5);
  font: 600 12px var(--font-display);
}

.landingWhy {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--s-7);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line);
}

.landingWhy > div:first-child > p {
  color: var(--ink);
  line-height: 1.6;
}

.landingWhy > div:first-child > a {
  display: inline-block;
  margin-top: var(--s-3);
  font: 600 12px var(--font-display);
}

.landingWhyGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.landingWhyGrid article {
  padding: var(--s-4);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.landingWhyGrid strong {
  display: block;
  color: var(--text);
  font: 700 15px var(--font-display);
  margin-bottom: 6px;
}

.landingWhyGrid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.landingFinal {
  margin-top: var(--s-6);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #5fbeeb29, transparent 55%), var(--surface-0);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
}

.landingFinal p {
  margin: 0 auto var(--s-5);
  color: var(--ink);
  max-width: 600px;
}

.landingFinal .landingHeroActions {
  justify-content: center;
}

.guidePage {
  max-width: 1180px;
}

.guideTopbar .brand {
  text-decoration: none;
}

.guideNav {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.guideNav a {
  color: var(--muted);
  border-radius: var(--r-sm);
  font: 600 12px var(--font-display);
  text-decoration: none;
  padding: 7px 11px;
}

.guideNav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.guideNav a.on {
  color: var(--accent-bright);
  background: var(--accent-soft);
}

.guideHero {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line);
}

.guideHero h1 {
  margin: 12px 0 var(--s-5);
  letter-spacing: -.045em;
  text-transform: uppercase;
  max-width: 950px;
  font-size: clamp(45px, 7vw, 80px);
  line-height: .94;
}

.guideHero h1 span {
  color: var(--accent-bright);
}

.guideHero > p {
  color: var(--ink);
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
}

.guideHeroActions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}

.guideSection {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.guideSectionIntro {
  margin-bottom: var(--s-6);
  max-width: 790px;
}

.guideSectionIntro h2, .guideHow h2 {
  margin: 7px 0 var(--s-3);
  letter-spacing: -.025em;
  font-size: clamp(29px, 4vw, 44px);
}

.guideSectionIntro p, .guideHow p {
  color: var(--ink);
  line-height: 1.6;
}

.guideSetup {
  display: flex;
  gap: var(--s-3);
  list-style: none;
  counter-reset: none;
  flex-direction: column;
}

.guideSetup li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: linear-gradient(135deg, var(--surface-1), var(--surface-0));
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

.guideSetup li > span {
  display: flex;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font: 700 15px var(--font-display);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 44px;
  height: 44px;
}

.guideSetup h3 {
  margin-bottom: 5px;
  font-size: 19px;
}

.guideSetup p {
  margin-bottom: var(--s-3);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guideCommand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  background: #04070b;
  align-items:  center;
  gap: 10px;
  width: min(100%, 590px);
  padding: 10px 12px;
}

.guideCommand:hover {
  border-color: var(--accent-line);
}

.guideCommand > span {
  color: var(--ok);
  font: 700 12px var(--font-mono);
}

.guideCommand code {
  overflow: hidden;
  color: var(--accent-bright);
  font: 12px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guideCommand em {
  color: var(--muted);
  font: 700 9px var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-style: normal;
}

.guideCallout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4);
  color: var(--ink);
  border-radius: var(--r-sm);
  background: #7ee78712;
  border: 1px solid #7ee7874d;
}

.guideCallout strong {
  color: var(--ok);
}

.guideCallout span {
  font-size: 13px;
}

.guideAgentGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.guideAgentGrid article {
  padding: var(--s-5);
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

.guideAgentGrid article:last-child {
  grid-column: 1 / -1;
}

.guideAgentLabel {
  color: var(--accent);
  font: 700 9px var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guideAgentGrid h3 {
  margin: 6px 0 var(--s-4);
  font-size: 23px;
}

.guideAgentGrid ul {
  display: flex;
  margin: var(--s-4) 0 0;
  list-style: none;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.guideAgentGrid li {
  position: relative;
  color: var(--ink);
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.guideAgentGrid li:before {
  content: "▸";
  position: absolute;
  color: var(--accent);
  left: 0;
}

.guideCommandGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.guideCommandGrid article {
  display: flex;
  padding: var(--s-4);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.guideCommandGrid code {
  color: var(--accent-bright);
  font-size: 12px;
}

.guideCommandGrid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.guideHow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}

.guideHow pre {
  margin-top: var(--s-4);
  padding: var(--s-4);
  overflow-x: auto;
  color: var(--accent-bright);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #04070b;
}

.guideFinal .guideCommand {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .topbar {
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items:  flex-start;
    max-width: 100%;
  }

  .nav {
    overflow-x: auto;
    order: 3;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .nav button, .nav a {
    flex: none;
  }

  .siteHeader {
    flex-wrap: nowrap;
    align-items:  center;
  }

  .siteHeader .primaryNav {
    display: none;
  }

  .siteHeader .mobileNav {
    display: block;
  }

  .siteHeader .headerBack {
    display: none;
  }

  .mobileNav > summary {
    display: flex;
    color: var(--text);
    background: var(--surface-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    justify-content: center;
    align-items:  center;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .mobileNav[open] > summary, .mobileNav > summary:hover {
    color: var(--accent-bright);
    background: var(--surface-2);
    border-color: var(--accent-line);
  }

  .mobileNav > nav {
    position: absolute;
    z-index: 90;
    display: grid;
    background: var(--surface-0);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    width: min(280px, 100vw - 32px);
    padding: 8px;
    top: calc(100% + 10px);
    right: 0;
  }

  .mobileNav > nav a {
    color: var(--ink);
    border-radius: var(--r-sm);
    font: 600 13px var(--font-display);
    padding: 11px 12px;
  }

  .mobileNav > nav a:hover, .mobileNav > nav a.on {
    color: var(--text);
    background: var(--surface-2);
  }

  .mobileNav > nav .mobileBack {
    color: var(--accent-bright);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    margin-bottom: 5px;
  }

  .landingHero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .landingHeroGame {
    min-height: 420px;
  }

  .landingHeroCopy {
    text-align: center;
  }

  .landingHeroCopy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .landingHeroActions {
    justify-content: center;
  }

  .landingInstall {
    margin-left: auto;
    margin-right: auto;
  }

  .landingUnlockGrid {
    grid-template-columns: 1fr 1fr;
  }

  .landingWhy {
    grid-template-columns: 1fr;
  }

  .guideCommandGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .siteHeader {
    gap: var(--s-2);
    padding: 9px;
  }

  .siteHeader .brand {
    margin-right: auto;
  }

  .siteHeader .authbox {
    margin-left: 0;
  }

  .accountMenuName {
    display: none;
  }

  .accountMenu > summary {
    gap: 4px;
    padding-right: 7px;
  }

  .landingHero {
    padding-top: var(--s-6);
    min-height: 0;
  }

  .landingHero h1 {
    font-size: clamp(46px, 16vw, 68px);
  }

  .landingHeroCopy > p {
    font-size: 16px;
  }

  .landingHeroGame {
    min-height: 350px;
    margin: -20px;
    transform: scale(.86);
  }

  .landingHeroPet {
    width: 250px;
    height: 250px;
  }

  .landingHeroPet .landingPetSprite {
    transform: scale(.82);
  }

  .landingStatSkills {
    left: 8px;
  }

  .landingStatAchievements {
    right: 4px;
  }

  .landingStatPets {
    right: 18px;
  }

  .landingSteps, .landingUnlockGrid, .landingWhyGrid {
    grid-template-columns: 1fr;
  }

  .landingSectionHead {
    flex-direction: column;
    align-items:  flex-start;
  }

  .landingLiveLinks {
    align-items:  flex-start;
    gap: var(--s-2);
    flex-direction: column;
  }

  .landingFinal {
    padding: var(--s-7) var(--s-4);
  }

  .guideTopbar {
    align-items:  flex-start;
  }

  .guideNav {
    overflow-x: auto;
    width: 100%;
    margin-left: 0;
  }

  .guideNav a {
    flex: none;
  }

  .guideHero {
    padding: var(--s-6) 0;
  }

  .guideHero > p {
    font-size: 16px;
  }

  .guideSetup li {
    grid-template-columns: 1fr;
  }

  .guideSetup li > span {
    width: 36px;
    height: 36px;
  }

  .guideCallout, .guideAgentGrid, .guideCommandGrid, .guideHow {
    grid-template-columns: 1fr;
  }

  .guideAgentGrid article:last-child {
    grid-column: auto;
  }
}

@media (max-width: 410px) {
  .siteHeader .brand > span:last-child {
    display: none;
  }
}

.banner {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  margin: var(--s-4) 0;
  font-size: var(--fs-sm);
  border: 1px solid var(--line);
}

.banner.ok {
  color: var(--ok);
  background: #7ee78714;
  border-color: #7ee78752;
}

.banner.info {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-bright);
}

.banner.warn {
  color: var(--warn);
  background: #ffcf5c14;
  border-color: #ffcf5c52;
}

.banner button {
  color: inherit;
  cursor: pointer;
  opacity: .7;
  background: none;
  border: 0;
  font-size: 16px;
}

.banner button:hover {
  opacity: 1;
}

.card {
  background: linear-gradient(180deg, var(--surface-0), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-5);
  margin-top: var(--s-4);
  box-shadow: var(--shadow-1);
}

.card h2 {
  font-size: var(--fs-h2);
  color: var(--text);
  margin-bottom: var(--s-3);
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.card.warn {
  border-color: #ffcf5c52;
}

.muted {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.hint {
  margin-bottom: var(--s-4);
  line-height: 1.5;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.row {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ranks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ranks li {
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  position: relative;
  transition: background .14s var(--ease), border-color .14s var(--ease);
  border: 1px solid #0000;
}

.ranks li:before {
  content: "";
  position: absolute;
  transition: background .14s var(--ease);
  background: none;
  border-radius: 2px;
  width: 2px;
  top: 8px;
  bottom: 8px;
  left: 0;
}

.ranks li:hover {
  background: var(--surface-1);
  border-color: var(--line-2);
}

.ranks li:hover:before {
  background: var(--accent);
}

.ranks li.sel {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.ranks li.sel:before {
  background: var(--accent);
}

.rankLink {
  display: grid;
  grid-template-columns: 36px 56px 1fr auto auto auto auto;
  gap: var(--s-3);
  color: inherit;
  cursor: pointer;
  align-items:  center;
  padding: 10px 14px;
}

.rankLink:hover {
  text-decoration: none;
}

.rank {
  font-family: var(--font-display);
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.ranks li:first-child .rank {
  color: var(--r-legendary);
  text-shadow: 0 0 14px #ffb45480;
}

.ranks li:nth-child(2) .rank {
  color: #d6dbe6;
}

.ranks li:nth-child(3) .rank {
  color: #e0a06a;
}

.rankPet {
  display: block;
  width: 56px;
  height: 56px;
}

.rankPet .petCanvas {
  aspect-ratio: auto;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-2);
  width: 56px;
  height: 56px;
}

.rankPetEmpty {
  display: block;
  opacity: .3;
}

.who {
  color: var(--text);
  letter-spacing: .01em;
  font-weight: 600;
}

.lvl {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

.xp {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.score {
  color: var(--accent-bright);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.ranks li.fresh {
  animation: rankFreshPulse 2s ease-out 1;
}

@keyframes rankFreshPulse {
  0% {
    background: #5fbeeb40;
    box-shadow: 0 0 0 3px #5fbeeb59;
  }

  60% {
    background: #5fbeeb14;
    box-shadow: 0 0 0 1px #5fbeeb26;
  }

  100% {
    background: var(--surface-inset);
    box-shadow: none;
  }
}

.ranks li.swarm {
  animation: rankSwarmPulse 1.8s ease-out 1;
}

.ranks li.swarmAi {
  animation: rankSwarmPulseAi 1.8s ease-out 1;
}

.ranks li.swarmAiVerified {
  animation: rankSwarmPulseAiVerified 1.8s ease-out 1;
}

@keyframes rankSwarmPulse {
  0% {
    background: #ffb45459;
    box-shadow: 0 0 #ffb454a6;
  }

  60% {
    background: #ffb4541f;
    box-shadow: 0 0 0 14px #ffb45400;
  }

  100% {
    background: var(--surface-inset);
    box-shadow: none;
  }
}

@keyframes rankSwarmPulseAi {
  0% {
    background: #b48cff59;
    box-shadow: 0 0 #b48cff99;
  }

  60% {
    background: #b48cff1f;
    box-shadow: 0 0 0 16px #b48cff00;
  }

  100% {
    background: var(--surface-inset);
    box-shadow: none;
  }
}

@keyframes rankSwarmPulseAiVerified {
  0% {
    background: #b48cff8c;
    box-shadow: 0 0 #b48cffd9, 0 0 18px #b48cff73;
  }

  60% {
    background: #b48cff2e;
    box-shadow: 0 0 0 22px #b48cff00, 0 0 #b48cff00;
  }

  100% {
    background: var(--surface-inset);
    box-shadow: none;
  }
}

.rankGhosts {
  display: inline-flex;
  align-items:  center;
  gap: 4px;
  padding-left: 6px;
}

.ghostDot {
  animation: ghostPulse 1.4s ease-in-out infinite;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

.ghostMore {
  color: var(--ink);
  opacity: .8;
  font-size: 11px;
  font-family: var(--font-mono);
  padding-left: 2px;
}

@keyframes ghostPulse {
  0%, 100% {
    transform: scale(.85);
    opacity: .85;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.ghostAvatarWrap {
  display: inline-flex;
  position: relative;
  background: #ffffff0d;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 1px;
}

.ghostAvatar {
  overflow: hidden;
  aspect-ratio: auto;
  background: linear-gradient(#0e1218, #060608);
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

.prefRow {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  cursor: pointer;
  user-select: none;
}

.prefRow input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.textInput {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: 13px var(--font-mono);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .12s var(--ease), background .12s var(--ease);
  padding: 8px 11px;
}

.textInput:focus {
  border-color: var(--accent-line);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.textInput::placeholder {
  color: var(--muted);
  opacity: .7;
}

.boardLayout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-5);
  align-items:  start;
}

.boardSpotlight {
  position: sticky;
  display: flex;
  gap: var(--s-3);
  flex-direction: column;
  top: 80px;
}

.rankSpotlight {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--accent-line);
  box-shadow: 0 0 50px #5fbeeb1f, var(--shadow-2);
  background: radial-gradient(at 50% 0%, #11202c, #060a10 70%);
  width: 100%;
}

.boardSpotlightMeta {
  padding: var(--s-1) var(--s-2);
}

.boardSpotlightMeta h3 {
  font-size: var(--fs-h3);
  margin: 0 0 4px;
}

.boardSpotlightMeta p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

@media (max-width: 760px) {
  .boardLayout {
    grid-template-columns: 1fr;
  }

  .boardSpotlight {
    position: static;
  }

  .rankSpotlight {
    aspect-ratio: 4 / 3;
  }
}

.boardCard {
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.boardCard:after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  opacity: .8;
  z-index: 0;
  transition: opacity .35s, background .35s;
  inset: 0;
}

.boardCard > * {
  position: relative;
  z-index: 1;
}

.board-score:after {
  background: radial-gradient(80% 60% at 50% 0%, #5fbeeb1f, #0000 70%);
}

.board-pets-count:after {
  background: radial-gradient(80% 60% at 50% 0%, #7ee7871a, #0000 70%);
}

.board-rarest-pet:after {
  background: radial-gradient(90% 70% at 50% 0%, #b48cff33, #0000 65%), radial-gradient(70% 50% at 80% 100%, #5fbeeb1f, #0000 60%);
}

.board-biggest-pet:after {
  background: radial-gradient(70% 50% at 50% 110%, #ffb45433, #0000 65%), linear-gradient(#0000 60%, #ffb4540f 100%);
}

.board-rarest-pet {
  border-color: #b48cff52;
  box-shadow: 0 14px 40px #783cc81f;
}

.board-rarest-pet .rankSpotlight {
  border-color: #b48cff8c;
  box-shadow: 0 14px 40px #783cc852;
}

.board-biggest-pet {
  border-color: #ffb45447;
  box-shadow: 0 14px 40px #b48c281f;
}

.board-biggest-pet .rankSpotlight {
  border-color: #ffb4548c;
  box-shadow: 0 14px 40px #b48c2847;
}

.boardTabs {
  display: flex;
  margin: var(--s-2) 0 var(--s-4);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 2px;
}

.boardTabs button {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .12s var(--ease), border-color .12s var(--ease);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
}

.boardTabs button:hover {
  color: var(--text);
}

.boardTabs button.on {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}

.audienceTabs {
  display: inline-flex;
  margin: 0 0 var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  gap: 2px;
  padding: 3px;
}

.audienceTabs button, .audienceTabs a {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background .12s var(--ease), color .12s var(--ease);
  background: none;
  border: 0;
  padding: 5px 13px;
  font-size: 12px;
}

.audienceTabs button:hover, .audienceTabs a:hover {
  color: var(--text);
}

.audienceTabs button.on, .audienceTabs a.on {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-2);
}

.skill {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  grid-template-rows: auto 5px;
  column-gap: var(--s-2);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  transition: border-color .14s var(--ease), background .14s var(--ease);
  align-items:  center;
  padding: 9px 11px;
}

.skill:hover {
  border-color: var(--line-2);
  background: var(--surface-1);
}

.skill .ic {
  text-align: center;
  font-size: 15px;
}

.skill .nm {
  font-size: var(--fs-sm);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill .lv {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 700;
}

.skill .barT {
  grid-column: 1 / -1;
  overflow: hidden;
  background: #ffffff0f;
  border-radius: 3px;
  height: 5px;
}

.skill .barF {
  display: block;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  box-shadow: 0 0 8px var(--accent-glow);
  height: 100%;
}

.skill.maxed {
  border-color: var(--r-legendary);
  background: #ffb4540f;
}

.skill.maxed .lv {
  color: var(--r-legendary);
}

.skill.maxed .barF {
  background: linear-gradient(90deg, var(--r-legendary), #ffe28a);
  box-shadow: 0 0 10px #ffb45480;
}

.tierBadge {
  font-family: var(--font-display);
  letter-spacing: .08em;
  border-radius: var(--r-xs);
  margin-left: var(--s-2);
  vertical-align: middle;
  text-transform: uppercase;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.tierBadge.supporter {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
}

.tierBadge.pro {
  background: var(--accent);
  color: #04121c;
}

.tierChip {
  font-family: var(--font-display);
  letter-spacing: .03em;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  flex: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.tierChip.free {
  background: var(--surface-1);
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.tierChip.supporter {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
}

.tierChip.pro {
  background: var(--accent);
  color: #04121c;
}

.aiBadge {
  display: inline-flex;
  font-family: var(--font-display);
  letter-spacing: .08em;
  border-radius: var(--r-xs);
  margin-left: var(--s-2);
  vertical-align: middle;
  color: #d6b8ff;
  text-transform: uppercase;
  background: #b48cff26;
  border: 1px solid #b48cff59;
  align-items:  center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.aiBadge.compact {
  margin-left: 6px;
  padding: 2px 5px;
  font-size: 11px;
  line-height: 1;
}

.aiBadge.attested {
  background: #b48cff40;
  border-color: #b48cff8c;
  box-shadow: 0 0 10px #b48cff40;
}

.aiBadge.verified {
  color: #efe6ff;
  background: #b48cff59;
  border-color: #b48cffbf;
  box-shadow: 0 0 16px #b48cff66;
}

.aiBadge.selfKeyed {
  color: #c4f6da;
  background: #7ee7872e;
  border-color: #7ee7878c;
  box-shadow: 0 0 10px #7ee7874d;
}

.aiBadge.verified.expiringSoon {
  border-color: #ffcf5cd9;
  box-shadow: 0 0 12px #ffcf5c73;
}

.webauthnKeys {
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line);
  margin-top: var(--s-3);
}

.webauthnKeyList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.webauthnKeyRow {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  font-size: 12px;
}

.webauthnKeyLabel {
  color: var(--text);
  font-weight: 600;
  font: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.webauthnKeyLabel:hover {
  color: var(--accent-bright);
}

.webauthnKeyDelete {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 13px;
}

.webauthnKeyDelete:hover {
  color: var(--danger);
  background: #ff8a8a2e;
}

.webauthnCountChip {
  display: inline-flex;
  font-family: var(--font-display);
  letter-spacing: .06em;
  margin-left: var(--s-2);
  border-radius: var(--r-xs);
  color: #c4f6da;
  background: #7ee7872e;
  border: 1px solid #7ee78766;
  align-items:  center;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.aiOtwBanner {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform 80ms var(--ease);
  background: linear-gradient(90deg, #b48cff2e, #5fbeeb0f);
  border: 1px solid #b48cff73;
  padding: 10px 16px;
}

.aiOtwBanner:hover {
  background: linear-gradient(90deg, #b48cff47, #5fbeeb1a);
  border-color: #b48cffa6;
  transform: translateY(-1px);
}

.aiOtwLabel {
  font-family: var(--font-display);
  letter-spacing: .12em;
  color: #d6b8ff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.aiOtwName {
  font-weight: 700;
}

.aiOtwScore {
  font-family: var(--font-mono);
  color: var(--accent-bright);
  margin-left: auto;
  font-weight: 700;
}

.attestFeed {
  display: flex;
  margin-top: var(--s-3);
  flex-direction: column;
  gap: 6px;
}

.attestRow {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text);
  text-align: left;
  transition: background .12s var(--ease), border-color .12s var(--ease);
  background: #b48cff0f;
  border: 1px solid #b48cff40;
  padding: 10px 14px;
}

.attestRow:hover {
  background: #b48cff24;
  border-color: #b48cff80;
}

.attestRowLink {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  color: inherit;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.attestWho {
  font-weight: 700;
}

.attestWhen {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-left: auto;
}

.attestEvidence {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 2px;
  font-size: 12px;
}

.attestEvidence:hover {
  text-decoration-color: var(--accent);
}

.providerCounts {
  display: flex;
  margin: var(--s-3) 0 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.providerCount {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 12px;
}

.providerCount.has-verified {
  background: #b48cff1f;
  border-color: #b48cff66;
}

.providerCountName {
  font-weight: 700;
}

.providerCountVerified {
  color: #d6b8ff;
  font-family: var(--font-mono);
  font-weight: 700;
}

.providerCountClaimed {
  color: var(--muted);
  font-family: var(--font-mono);
}

.announceStack {
  position: fixed;
  z-index: 250;
  display: flex;
  gap: var(--s-2);
  pointer-events: none;
  flex-direction: column;
  top: 16px;
  right: 16px;
}

.announceToast {
  pointer-events: auto;
  display: inline-flex;
  align-items:  center;
  gap: var(--s-3);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
  animation: announceIn .35s var(--ease) 1, announceOut .5s ease-in 7.5s 1 forwards;
  background: linear-gradient(90deg, #b48cff59, #5fbeeb38);
  border: 1px solid #b48cffa6;
  padding: 11px 16px;
  box-shadow: 0 14px 34px #b48cff4d;
}

.announceToast:hover {
  transform: translateY(-1px);
}

.announceLabel {
  font-family: var(--font-display);
  letter-spacing: .12em;
  color: #d6b8ff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.announceWho {
  font-weight: 700;
}

@keyframes announceIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes announceOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.attestTrail {
  list-style: none;
  margin: var(--s-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.attestTrailRow {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  border-left-width: 3px;
  padding: 6px 10px;
  font-size: 12px;
}

.attestDot {
  display: inline-flex;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
}

.attestKindLabel {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 700;
}

.attestTrailAt {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-left: auto;
}

.attestKind-claimed {
  border-left-color: #b48cff8c;
}

.attestKind-claimed .attestDot {
  color: #d6b8ff;
  background: #b48cff40;
}

.attestKind-verified {
  border-left-color: #5fbeeba6;
}

.attestKind-verified .attestDot {
  color: #b3e5ff;
  background: #5fbeeb4d;
}

.attestKind-cleared {
  border-left-color: #ffb4548c;
}

.attestKind-cleared .attestDot {
  color: #ffd2a3;
  background: #ffb45440;
}

.achGroups {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-direction: column;
}

.achGroupName {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
}

.achList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.achChip {
  display: inline-flex;
  align-items:  center;
  gap: var(--s-2);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  transition: border-color .14s var(--ease), transform 80ms var(--ease);
  padding: 5px 10px 5px 12px;
  font-size: 12px;
}

.achChip:hover {
  transform: translateY(-1px);
}

.achName {
  color: var(--text);
  font-weight: 600;
}

.achTier {
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  color: var(--ink);
  background: #ffffff14;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
}

.achChip.tier-bronze {
  border-color: #cd7f3266;
}

.achChip.tier-bronze .achTier {
  color: #f5cba7;
  background: #cd7f3233;
}

.achChip.tier-silver {
  border-color: #c0c0c066;
}

.achChip.tier-silver .achTier {
  color: #e7e7e7;
  background: #c0c0c033;
}

.achChip.tier-gold {
  border-color: #ffd70073;
}

.achChip.tier-gold .achTier {
  color: #ffe28a;
  background: #ffd70038;
}

.achChip.tier-platinum {
  background: #b4d2ff14;
  border-color: #b4d2ff8c;
}

.achChip.tier-platinum .achTier {
  color: #cfe4ff;
  background: #b4d2ff40;
}

.achChip.tier-mythic {
  background: #ffb4501a;
  border-color: #ffb45099;
  box-shadow: 0 0 14px #ffb4502e;
}

.achChip.tier-mythic .achTier {
  color: #ffe1a8;
  background: #ffb4504d;
}

.achChip.tier-secret {
  border-color: #b48cff80;
}

.achChip.tier-secret .achTier {
  color: #d6b8ff;
  background: #b48cff40;
}

.achChip.locked {
  opacity: .4;
  filter: grayscale(.4);
}

.achChip.locked .achName {
  color: var(--ink);
}

.ghostDot.ai {
  outline: 1.5px solid #b48cffb3;
  outline-offset: 1px;
}

.ghostAvatarWrap.ai {
  background: #b48cff33;
}

.ghostAiPip {
  position: absolute;
  pointer-events: none;
  font-size: 10px;
  line-height: 1;
  bottom: -4px;
  right: -4px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-2);
}

.tier {
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-5);
  display: flex;
  transition: border-color .15s var(--ease), transform .12s var(--ease);
  flex-direction: column;
}

.tier:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.tier.current {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.tier.pro {
  border-color: var(--accent-line);
  box-shadow: 0 0 40px #5fbeeb14;
}

.tier .pill {
  position: absolute;
  font-family: var(--font-display);
  letter-spacing: .04em;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #04121c;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  top: -11px;
  right: 14px;
}

.tier h3 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 18px;
}

.tier .price {
  font-family: var(--font-display);
  margin: var(--s-2) 0 2px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
}

.tier .blurb {
  color: var(--muted);
  min-height: 34px;
  font-size: 13px;
}

.perks {
  list-style: none;
  margin: var(--s-3) 0;
  display: flex;
  gap: var(--s-2);
  flex-direction: column;
  flex: 1;
}

.perks li {
  color: var(--ink);
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.4;
}

.perks li:before {
  content: "▸";
  position: absolute;
  color: var(--accent);
  font-weight: 700;
  left: 0;
}

.tier .btn {
  width: 100%;
  margin-top: auto;
}

.acctHead {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: var(--s-3);
}

.subline {
  color: var(--ink);
  font-size: var(--fs-sm);
  margin-top: 4px;
}

.idents {
  list-style: none;
  display: flex;
  gap: var(--s-2);
  margin: var(--s-3) 0;
  flex-direction: column;
}

.idents li {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.loginCard {
  border-color: var(--accent-line);
}

.loginCard h2 {
  margin: 4px 0;
}

.identityAvatar {
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 50%;
  flex: none;
  width: 40px;
  height: 40px;
}

.identityFallback {
  display: grid;
  color: var(--text);
  font: 700 15px var(--font-display);
  place-items:  center;
}

.identityDetails {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
}

.identityDetails strong, .identityDetails span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identityDetails strong {
  color: var(--text);
  font: 700 14px var(--font-display);
}

.identityDetails span {
  color: var(--muted);
  font: 12px var(--font-mono);
}

.providerPill {
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font: 700 10px var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.loginActions {
  margin-top: var(--s-3);
}

.dot {
  background: #666;
  border-radius: 50%;
  flex: none;
  width: 10px;
  height: 10px;
}

.dot.gh {
  background: #e4e4e7;
}

.dot.gg {
  background: #4285f4;
}

.dot.credentials {
  background: var(--accent);
}

.idp {
  color: var(--text);
  font-weight: 600;
}

.primary {
  font-family: var(--font-display);
  letter-spacing: .04em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-radius: var(--r-xs);
  border: 1px solid var(--accent-line);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.idsub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  max-width: 220px;
}

.idActions {
  display: flex;
  gap: var(--s-3);
  margin-left: auto;
}

@media (max-width: 680px) {
  .loginCard .idents li {
    flex-wrap: wrap;
    align-items:  flex-start;
  }

  .identityDetails {
    min-width: calc(100% - 56px);
  }

  .providerPill {
    margin-left: 56px;
  }

  .loginCard .idActions {
    width: 100%;
    margin-left: 56px;
  }
}

.link {
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.link.danger {
  color: var(--danger);
}

.signout {
  display: block;
  margin: var(--s-5) auto 0;
  color: var(--muted);
}

.collectionAccountCard {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items:  center;
  gap: var(--s-5);
  border-color: var(--accent-line);
  background: linear-gradient(115deg, var(--accent-soft), var(--surface-0) 55%);
}

.collectionAccountCard h2 {
  margin: 4px 0;
}

.collectionAccountCard p {
  max-width: 560px;
  margin: 0;
}

.collectionAccountStats {
  display: flex;
  gap: var(--s-4);
}

.collectionAccountStats span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

.collectionAccountStats strong {
  display: block;
  color: var(--text);
  font: 700 19px var(--font-display);
}

@media (max-width: 820px) {
  .collectionAccountCard {
    grid-template-columns: 1fr;
  }

  .collectionAccountStats {
    flex-wrap: wrap;
  }

  .collectionAccountCard .btn {
    justify-self: start;
  }
}

.form {
  display: flex;
  gap: var(--s-3);
  margin: var(--s-4) 0;
  flex-direction: column;
  max-width: 380px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}

.field input {
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  color: var(--text);
  font: 15px var(--font-body);
  transition: border-color .12s var(--ease), background .12s var(--ease), box-shadow .12s var(--ease);
  padding: 11px 14px;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field .err {
  color: var(--danger);
  font-size: 12px;
}

.tabRow {
  display: flex;
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  gap: 4px;
}

.tabRow button {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 9px 14px;
  font-size: 13px;
}

.tabRow button.on {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}

.atable {
  border-collapse: collapse;
  font-size: var(--fs-sm);
  width: 100%;
}

.atable th, .atable td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.atable th {
  color: var(--muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 600;
}

.atable tr:hover td {
  background: var(--surface-1);
}

.atable td .miniRow {
  display: inline-flex;
  gap: 6px;
}

.atable td select, .petPortalSelect {
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--r-xs);
  font: 12px var(--font-body);
  padding: 5px 9px;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: var(--s-7);
}

.foot a {
  color: var(--ink);
}

.syncStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.stat {
  display: flex;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  flex-direction: column;
  gap: 2px;
}

.stat .num {
  font-family: var(--font-display);
  color: var(--accent-bright);
  letter-spacing: -.01em;
  font-size: 24px;
  font-weight: 700;
}

.stat .lbl {
  font-family: var(--font-display);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.statDetail {
  margin-top: 4px;
  font-size: 11px;
}

.githubAccountsCard {
  border-color: var(--accent-line);
}

.githubAccountsCard h2 {
  margin: 4px 0;
}

.githubProvenanceNote {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.githubAccountGrid {
  display: grid;
  gap: var(--s-4);
}

.githubAccount {
  padding: var(--s-4);
  background: var(--surface-inset);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

.githubAccountHead {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
}

.githubAccountIdentity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
}

.githubAccountIdentity strong {
  overflow: hidden;
  color: var(--text);
  font: 700 15px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.githubAccountIdentity a {
  color: var(--muted);
  font: 12px var(--font-mono);
}

.githubAccountIdentity a:hover {
  color: var(--accent-bright);
}

.githubAccountBadges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.githubAccountScore {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.githubAccountScore > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.githubAccountScore .num {
  overflow: hidden;
  color: var(--text);
  font: 700 23px var(--font-display);
  text-overflow: ellipsis;
}

.githubAccountScore .num.small {
  padding-top: 4px;
  font-size: 17px;
}

.githubAccountScore .lbl, .breakdownLabel {
  color: var(--muted);
  font: 700 10px var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.scoreContributionBar {
  margin-top: var(--s-3);
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  height: 5px;
}

.scoreContributionBar span {
  display: block;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  border-radius: inherit;
  min-width: 0;
  height: 100%;
}

.githubAccountBreakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.githubAccountBreakdown > div {
  min-width: 0;
}

.githubAccountBreakdown p {
  color: var(--ink);
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.githubAccountBreakdown code {
  display: inline-block;
  overflow: hidden;
  color: var(--accent-bright);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin-top: 5px;
  font-size: 11px;
}

.accountSyncTime {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

.githubAccountFoot {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.githubCooldownNote {
  margin: var(--s-4) 0 0;
}

@media (max-width: 760px) {
  .githubAccountBreakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .githubAccountHead {
    flex-wrap: wrap;
    align-items:  flex-start;
  }

  .githubAccountIdentity {
    min-width: calc(100% - 56px);
  }

  .githubAccountBadges {
    justify-content: flex-start;
    width: 100%;
    margin-left: 56px;
  }

  .githubAccountScore {
    grid-template-columns: 1fr 1fr;
  }

  .githubAccountScore > div:last-child {
    grid-column: 1 / -1;
  }

  .githubAccountFoot {
    flex-direction: column;
    align-items:  flex-start;
  }
}

.cliBox {
  display: flex;
  align-items:  center;
  gap: var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  position: relative;
  background: #05070b;
  padding: 11px 14px;
}

.cliBox:before {
  content: "$";
  color: var(--accent-deep);
  font-weight: 700;
}

.cliBox code {
  color: var(--accent-bright);
  flex: 1;
  font-size: 13px;
}

.petStage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.petCard {
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
}

.petCard:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.petCanvas {
  aspect-ratio: 1;
  background: radial-gradient(at 50% 30%, #14202c, #05080d 72%);
}

.petLabel {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: var(--s-2);
  border-top: 1px solid var(--line);
  background: var(--surface-1);
  padding: 9px 12px;
}

.tierTag {
  font-family: var(--font-display);
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex: none;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 700;
}

.tierTag.t-common {
  color: var(--ink);
  background: #ffffff1a;
}

.tierTag.t-uncommon {
  color: var(--ok);
  background: #7ee7872e;
}

.tierTag.t-rare {
  color: #93d4f5;
  background: #5fbeeb33;
}

.tierTag.t-epic {
  color: #c4b5fd;
  background: #b48cff38;
}

.tierTag.t-legendary {
  color: var(--warn);
  background: #ffb45440;
  border: 1px solid #ffb45466;
}

.tierTag.t-mythic {
  background: linear-gradient(90deg, var(--r-mythic-a), var(--r-mythic-b));
  color: #1a1024;
}

.petName {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}

.avatarBtn {
  position: absolute;
  border: 1px solid var(--line-strong);
  color: #aaa;
  display: flex;
  cursor: pointer;
  transition: color .12s var(--ease), background .12s var(--ease);
  background: #0000008c;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 14px;
  top: 8px;
  right: 8px;
}

.avatarBtn:hover {
  color: var(--accent-bright);
  background: #000000bf;
}

.avatarBtn.on {
  color: var(--accent);
  cursor: default;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.petCard.isAvatar {
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.petSize {
  font-family: var(--font-mono);
  color: var(--muted);
  border-radius: var(--r-xs);
  background: #ffffff0f;
  flex: none;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
}

.petLookControl {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
}

.petLookControl select {
  appearance: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--r-sm);
  font: 10px var(--font-display);
  cursor: pointer;
  background: #000000a6;
  padding: 4px 8px;
}

.petLookControl select:hover {
  border-color: var(--accent-line);
}

.petPortalSelect {
  appearance: none;
  cursor: pointer;
}

.petCard.tier-legendary {
  background: linear-gradient(var(--surface-0), var(--surface-0)) padding-box, linear-gradient(135deg, #fbbf24, #f59e0b 30%, #fde68a 50%, #fbbf24 70%, #f59e0b) border-box;
  animation: legendaryShimmer 5s linear infinite;
  background-size: 100% 100%, 300% 300%;
  border: 1.5px solid #0000;
}

@keyframes legendaryShimmer {
  0% {
    background-position: 0 0, 0%;
  }

  100% {
    background-position: 0 0, 300%;
  }
}

.petCard.tier-mythic {
  background: linear-gradient(var(--surface-0), var(--surface-0)) padding-box, linear-gradient(45deg, #f0abfc, #fbbf24, #5fbeeb, #c4b5fd, #f0abfc) border-box;
  animation: mythicShimmer 7s linear infinite;
  background-size: 100% 100%, 400% 400%;
  border: 2px solid #0000;
}

@keyframes mythicShimmer {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 400% 0%;
  }
}

.modalScrim {
  position: fixed;
  backdrop-filter: blur(7px);
  z-index: 100;
  display: flex;
  background: #020408b8;
  justify-content: center;
  align-items:  center;
  padding: 20px;
  inset: 0;
}

.modal {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-2);
  background: radial-gradient(at 20% 0%, #131b2a 0%, #070a11 55%, #05070b 100%);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
}

.modal:before {
  content: "";
  position: absolute;
  border-radius: var(--r-lg);
  pointer-events: none;
  opacity: .3;
  animation: modalAura 24s linear infinite;
  mix-blend-mode: screen;
  background: conic-gradient(at 70% 20%, #5fbeeb2e, #b48cff1a, #ffd28c1f, #5fbeeb2e);
  inset: 0;
}

@keyframes modalAura {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.modal > * {
  position: relative;
  z-index: 1;
}

.modalClose {
  position: absolute;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
  background: none;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  top: 12px;
  right: 12px;
}

.modalClose:hover {
  color: var(--text);
  background: var(--surface-2);
}

.profileHead {
  display: flex;
  justify-content: space-between;
  align-items:  flex-end;
  gap: var(--s-4);
  margin-bottom: var(--s-3);
}

.profileHead h2 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 26px;
}

.profileScore {
  text-align: right;
}

.profileScore .num {
  font-family: var(--font-display);
  color: var(--accent-bright);
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.profileScore .lbl {
  font-family: var(--font-display);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}

.profileAvatar .petCanvas {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  max-height: 320px;
}

.profileAvatarEmpty {
  display: flex;
  aspect-ratio: 16 / 10;
  justify-content: center;
  align-items:  center;
  max-height: 320px;
}

.profileStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.profileStats .stat {
  padding: 10px 12px;
}

.profileShowcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.profileShowcase .petCanvas {
  aspect-ratio: 1;
}

.summonScrim {
  position: fixed;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-4);
  padding: var(--s-5);
  animation: summonIn .4s var(--ease) 1;
  background: radial-gradient(#060615 0%, #020205 70%, #000 100%);
  flex-direction: column;
  inset: 0;
}

@keyframes summonIn {
  from {
    opacity: 0;
    transform: scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.summonHead {
  display: flex;
  align-items:  center;
  gap: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  border: 1px solid var(--accent-line);
  padding: 10px 18px;
}

.summonLabel {
  font-family: var(--font-display);
  letter-spacing: .12em;
  color: var(--accent-bright);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}

.summonProgress {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 12px;
}

.summonSkip {
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.summonStage {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--accent-line);
  animation: summonStageIn .8s var(--ease) 1;
  width: min(720px, 90vw);
  max-height: 60vh;
  box-shadow: 0 0 80px #5fbeeb26, 0 20px 60px #0009;
}

@keyframes summonStageIn {
  from {
    transform: scale(.85);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.summonMeta {
  text-align: center;
  min-height: 56px;
}

.summonName {
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 28px;
}

.summonName.tier-mythic {
  color: #ffd166;
  text-shadow: 0 0 22px #ffb4508c;
}

.summonName.tier-legendary {
  color: #d6b8ff;
  text-shadow: 0 0 18px #b48cff73;
}

.summonName.tier-epic {
  color: #b3e5ff;
}

.summonControls {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  align-items:  center;
  gap: var(--s-4);
  width: min(520px, 90vw);
}

.summonControls > button:last-child {
  justify-self: end;
}

.summonControls button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.summonDots {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: 7px;
}

.summonDots span {
  background: var(--line-2);
  transition: width .18s var(--ease), background .18s var(--ease);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.summonDots span.active {
  border-radius: var(--r-pill);
  background: var(--accent-bright);
  width: 20px;
  box-shadow: 0 0 12px #5fbeeb8c;
}

@media (max-width: 560px) {
  .summonScrim {
    gap: var(--s-3);
    padding: var(--s-3);
  }

  .summonHead {
    justify-content: space-between;
    gap: var(--s-2);
    width: 100%;
  }

  .summonLabel {
    letter-spacing: .08em;
    font-size: 11px;
  }

  .summonStage {
    width: min(100%, 56vh);
  }

  .summonMeta .muted {
    font-size: 12px;
  }

  .summonControls {
    gap: var(--s-2);
    width: 100%;
  }
}

.viewportCanvas {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  inset: 0;
}

.viewportCanvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.loadState {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: var(--s-3);
  padding: var(--s-7) var(--s-4);
  color: var(--muted);
  text-align: center;
  flex-direction: column;
}

.spinner {
  border: 2.5px solid var(--line-2);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loadState .retry {
  margin-top: var(--s-2);
}

.collectionPage {
  padding-bottom: var(--s-8);
  max-width: 1320px;
}

.collectionTopbar .brand {
  color: var(--text);
  text-decoration: none;
}

.collectionNav {
  display: flex;
  align-items:  center;
  gap: 4px;
  margin-left: auto;
}

.collectionNav button, .collectionNav a {
  color: var(--muted);
  border-radius: var(--r-sm);
  font: 600 13px var(--font-display);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 8px 12px;
}

.collectionNav button:hover, .collectionNav a:hover {
  color: var(--text);
  background: var(--surface-1);
}

.collectionNav button.on {
  color: var(--accent-bright);
  background: var(--accent-soft);
}

.collectionWorkspaceNav {
  margin: calc(-1 * var(--s-3)) 0 var(--s-4);
  justify-content: flex-end;
}

.collectionHero {
  display: flex;
  justify-content: space-between;
  align-items:  flex-end;
  gap: var(--s-7);
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--line-2);
}

.collectionHero h1 {
  margin: 5px 0 var(--s-2);
  letter-spacing: -.035em;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
}

.collectionHero p {
  color: var(--ink);
  max-width: 690px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.collectionEyebrow {
  color: var(--accent);
  font: 700 11px var(--font-mono);
  letter-spacing: .16em;
}

.collectionCount {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  text-align: right;
  box-shadow: inset 0 1px var(--edge-hi);
  flex: none;
  min-width: 150px;
  padding: 16px 20px;
}

.collectionCount strong {
  display: block;
  color: var(--text);
  font: 700 32px / 1 var(--font-display);
}

.collectionCount span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}

.collectionTools {
  position: sticky;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(112px, .65fr)) auto;
  align-items:  end;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-1);
  background: #0b0f17eb;
  padding: 14px;
  top: 0;
}

.collectionTools label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.collectionTools label > span {
  color: var(--muted);
  font: 700 10px var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.collectionTools input, .collectionTools select {
  box-sizing: border-box;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: 13px var(--font-body);
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
}

.collectionTools input:focus, .collectionTools select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.collectionSearch input {
  font-family: var(--font-mono);
}

.clearFilters {
  color: var(--accent);
  font: 600 12px var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 0;
  height: 40px;
}

.collectionResultsHeader {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-3);
  color: var(--muted);
  font-size: 12px;
}

.collectionNotice {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  padding: 10px 13px;
}

.collectionNotice button {
  color: var(--accent-bright);
  cursor: pointer;
  background: none;
  border: 0;
}

.collectionGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: var(--s-4);
  transition: opacity .15s var(--ease);
}

.collectionGrid.isLoading {
  opacity: .55;
}

.collectionPet {
  --pet-accent: var(--r-common);
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pet-accent) 7%, var(--surface-0)), var(--surface-0) 46%);
  border: 1px solid color-mix(in srgb, var(--pet-accent) 34%, var(--line));
  border-radius: var(--r-md);
  box-shadow: inset 0 1px var(--edge-hi);
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
  min-width: 0;
}

.collectionPet:hover {
  border-color: color-mix(in srgb, var(--pet-accent) 68%, var(--line));
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.collectionPet.isAvatar {
  box-shadow: 0 0 0 2px var(--accent), 0 0 28px #5fbeeb1f;
}

.collectionPetArt {
  position: relative;
  display: flex;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--pet-accent) 13%, transparent), transparent 68%);
  justify-content: center;
  align-items:  center;
  height: 170px;
}

.collectionPetStatus {
  position: absolute;
  color: #061018;
  background: var(--accent-bright);
  border-radius: var(--r-pill);
  font: 700 9px var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 7px;
  top: 10px;
  left: 10px;
}

.collectionPetBody {
  padding: 13px;
}

.collectionPetTitle {
  display: flex;
  align-items:  center;
  gap: var(--s-2);
  min-width: 0;
}

.collectionPetTitle a {
  overflow: hidden;
  color: var(--text);
  font: 700 15px var(--font-display);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collectionPetTitle a:hover {
  color: var(--accent-bright);
}

.petTierBadge {
  color: var(--pet-accent);
  background: color-mix(in srgb, var(--pet-accent) 12%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--pet-accent) 50%, var(--line));
  border-radius: var(--r-pill);
  font: 800 9px var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: none;
  padding: 3px 6px;
}

.oneOfOne {
  color: #17100a;
  background: var(--r-legendary);
  border-radius: var(--r-xs);
  font: 800 9px var(--font-mono);
  flex: none;
  padding: 2px 5px;
}

.collectionPetMeta {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 8px;
  font-size: 11px;
}

.collectionPetMeta strong {
  color: var(--pet-accent);
}

.collectionPetRarity {
  color: var(--ink);
  font: 11px var(--font-mono);
  margin-top: 5px;
}

.petDistinctions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.petDistinctions span {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  font: 700 9px var(--font-display);
  letter-spacing: .035em;
  text-transform: uppercase;
  padding: 3px 6px;
}

.collectionPetOwner {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-top: 6px;
  font-size: 11px;
}

.collectionPetOwner:hover {
  color: var(--accent);
}

.collectionPetActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.collectionPetActions:has(.petAction:only-child) {
  grid-template-columns: 1fr;
}

.petAction {
  display: flex;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font: 600 11px var(--font-display);
  text-decoration: none;
  cursor: pointer;
  justify-content: center;
  align-items:  center;
  min-height: 32px;
  padding: 6px 8px;
}

.petAction:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.petAction.primary {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.collectionEmpty {
  padding: var(--s-8) var(--s-4);
  text-align: center;
  background: var(--surface-inset);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.collectionEmpty p {
  color: var(--muted);
}

.collectionMore {
  display: flex;
  margin-top: var(--s-6);
  justify-content: center;
}

.petBooksHero {
  border-bottom: 0;
}

.bookShelfSection {
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  margin: 8px 0 34px;
  padding: 22px;
}

.bookShelfHeading {
  display: flex;
  justify-content: space-between;
  align-items:  end;
  gap: 24px;
  margin-bottom: 20px;
}

.bookShelfHeading h2 {
  margin: 4px 0 0;
  font-size: 25px;
}

.bookShelfHeading > p {
  color: var(--muted);
  text-align: right;
  max-width: 520px;
  margin: 0;
}

.petBookShelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  border-bottom: 12px solid color-mix(in srgb, #6d4429 74%, var(--surface-2));
  perspective: 900px;
  align-items:  end;
  gap: 24px;
  padding: 20px 18px 12px;
  box-shadow: inset 0 -4px #0000002e;
}

.petBookCover {
  position: relative;
  display: flex;
  overflow: hidden;
  color: #f7f9ff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  background: linear-gradient(145deg, #101827, #243b64);
  border: 1px solid #ffffff38;
  border-radius: 5px 14px 14px 5px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 290px;
  padding: 24px 20px;
  transform: rotateY(-4deg);
  box-shadow: -7px 6px #0000002b, inset 8px 0 #ffffff12, inset -2px 0 #0003;
}

.petBookCover:before {
  position: absolute;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 82% 8%, #ffffff3d, #0000 34%), repeating-linear-gradient(105deg, #0000 0 12px, #ffffff06 13px 14px);
  inset: 0;
}

.petBookCover:hover {
  transform: rotateY(0)translateY(-8px);
  box-shadow: -9px 13px #00000026, 0 18px 32px #0000002e;
}

.petBookCover strong {
  position: relative;
  font: 800 28px / 1.05 var(--font-display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.petBookCover small, .bookFoil {
  position: relative;
  color: #ffffffb8;
  font: 700 10px var(--font-display);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: 9px;
}

.bookFoil {
  color: #9fe2ff;
  margin: 0 0 auto;
}

.bookProgress {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: #00000047;
  border: 1px solid #ffffff24;
  height: 26px;
  margin-top: 18px;
}

.bookProgress i {
  position: absolute;
  opacity: .42;
  background: linear-gradient(90deg, #35a9df, #8ce7ff);
  inset: 0 auto 0 0;
}

.bookProgress span {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  font: 700 10px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 8px;
}

.cover-holo {
  background: linear-gradient(135deg, #13263f, #704c90 40%, #187c92 72%, #202b52);
}

.cover-holo:after {
  position: absolute;
  content: "";
  background: linear-gradient(100deg, #0000 42%, #ffffff3d 49%, #0000 56%);
  inset: -60%;
  transform: rotate(18deg);
}

.cover-archive {
  color: #f6e4bc;
  background: linear-gradient(145deg, #352419, #6f4c2e);
  border-color: #ad8659;
}

.cover-neon {
  background: linear-gradient(145deg, #090912, #251347);
  border-color: #dd50ff;
  box-shadow: -7px 6px #00000038, inset 8px 0 #ffffff0d, 0 0 22px #cb47ff2e;
}

.cover-field {
  color: #f3f1dc;
  background: linear-gradient(145deg, #29382b, #526643);
}

.cover-rose {
  background: linear-gradient(145deg, #3c1729, #963e6f);
}

.personalBookWrap {
  position: relative;
}

.personalBookWrap .petBookCover {
  width: 100%;
}

.deleteBook {
  position: absolute;
  z-index: 2;
  color: #ffffffb8;
  border-radius: var(--r-xs);
  cursor: pointer;
  background: #00000047;
  border: 1px solid #ffffff29;
  padding: 4px 7px;
  font-size: 10px;
  top: 10px;
  right: 9px;
}

.createBookPanel {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
}

.createBookPanel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.createBookPanel label span {
  color: var(--muted);
  font: 700 10px var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.createBookPanel input, .createBookPanel select, .binderBuilder input, .binderBuilder select {
  box-sizing: border-box;
  color: var(--text);
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  min-width: 0;
  height: 40px;
  padding: 0 10px;
}

.createBookPanel .bookDescription {
  grid-column: 1 / -1;
}

.createBookPanel > button {
  justify-self: start;
}

.petBookOpen {
  background: linear-gradient(90deg, var(--surface-0), var(--surface-1) 49.5%, var(--line-2) 49.8%, var(--surface-1) 50.2%, var(--surface-0));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 22px;
}

.petBookOpenHead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line-2);
  align-items:  center;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.petBookOpenHead h2 {
  margin: 4px 0;
  font-size: 32px;
}

.petBookOpenHead p {
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

.shareBook {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xs);
  font: 700 10px var(--font-display);
  cursor: pointer;
  margin-top: 9px;
  padding: 5px 8px;
}

.petBookBack {
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  align-self:  start;
  padding: 7px 10px;
}

.petBookCompletion {
  background: var(--surface-inset);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  text-align: right;
  min-width: 132px;
  padding: 13px;
}

.petBookCompletion strong, .petBookCompletion span, .petBookCompletion small {
  display: block;
}

.petBookCompletion strong {
  color: var(--text);
  font: 800 24px var(--font-display);
}

.petBookCompletion span, .petBookCompletion small {
  color: var(--muted);
  font-size: 11px;
}

.petBookLegend {
  display: flex;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 11px;
}

.petBookLegend span {
  display: inline-flex;
  align-items:  center;
  gap: 6px;
}

.petBookLegend i, .parallelRow i {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.petBookLegend i.isDiscovered, .parallelRow i.isDiscovered {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: none;
}

.petBookLegend i.isOwned, .parallelRow i.isOwned {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent);
}

.officialBinderGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 13px;
}

.officialBinderSlot, .personalBinderSlot {
  position: relative;
  background: color-mix(in srgb, var(--surface-0) 90%, transparent);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px var(--edge-hi);
  min-width: 0;
  padding: 11px;
}

.binderPocket {
  position: relative;
  display: flex;
  overflow: hidden;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: linear-gradient(145deg, #82a5c814, #ffffff06);
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 130px;
  margin-bottom: 9px;
  padding: 0;
  box-shadow: inset 0 0 18px #5082aa0f;
}

.binderPocket:disabled {
  cursor: default;
}

.binderPocket:after {
  position: absolute;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid #ffffff21;
  inset: 0;
}

.binderPocket a {
  color: inherit;
}

.binderSlotNumber {
  position: absolute;
  z-index: 2;
  color: var(--muted);
  font: 700 9px var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  top: 7px;
  left: 8px;
}

.hiddenPetSilhouette {
  display: flex;
  color: #789bb97a;
  clip-path: polygon(20% 15%, 34% 0, 45% 17%, 62% 16%, 76% 1%, 88% 22%, 82% 45%, 100% 66%, 84% 100%, 16% 100%, 0 66%, 18% 45%, 12% 22%);
  font: 800 28px var(--font-display);
  filter: blur(.2px);
  background: #4664821f;
  justify-content: center;
  align-items:  center;
  width: 72px;
  height: 88px;
}

.discoveredPetPreview {
  opacity: .34;
  filter: grayscale(1) saturate(.15);
  transition: opacity .18s var(--ease);
}

.binderPocket:hover .discoveredPetPreview {
  opacity: .52;
}

.officialBinderSlot > strong, .personalBinderSlot > strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font: 700 12px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binderHint {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 10px;
}

.parallelRow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.parallelRow i {
  border-radius: 3px;
  width: auto;
  height: 6px;
}

.personalBinderGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 13px;
  min-height: 170px;
}

.personalBinderSlot {
  padding-top: 27px;
}

.personalBinderSlot[draggable="true"] {
  cursor: grab;
}

.personalBinderSlot.isDragging {
  opacity: .45;
  transform: scale(.98);
}

.personalPetArt, .emptyBinderPocket {
  display: flex;
  color: inherit;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  justify-content: center;
  align-items:  center;
  height: 130px;
  margin-bottom: 9px;
}

.emptyBinderPocket {
  color: var(--faint);
  font: 300 38px var(--font-display);
  border-style: dashed;
}

.binderRemove {
  position: absolute;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 9px;
  top: 6px;
  right: 6px;
}

.binderPocketControls {
  position: absolute;
  display: flex;
  gap: 2px;
  top: 4px;
  right: 5px;
}

.binderPocketControls button {
  color: var(--muted);
  border-radius: var(--r-xs);
  cursor: pointer;
  background: none;
  border: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  font-size: 9px;
}

.binderPocketControls button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.binderPocketControls button:disabled {
  opacity: .25;
  cursor: default;
}

.personalBinderEmpty {
  display: flex;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 5px;
  min-height: 120px;
}

.binderBuilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-2);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
}

.binderBuilder > div {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px;
}

.binderBuilder h3 {
  margin: 0 0 4px;
}

.binderBuilder p {
  min-height: 36px;
  margin: 0 0 10px;
  font-size: 12px;
}

.binderBuilder select {
  width: 100%;
}

.binderBuilder .btn {
  margin-top: 10px;
}

.binderBuilderRow {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
}

.subjectSheetBackdrop {
  position: fixed;
  z-index: 90;
  display: flex;
  backdrop-filter: blur(8px);
  background: #02060ec2;
  justify-content: center;
  align-items:  center;
  padding: 20px;
  inset: 0;
}

.subjectSheet {
  overflow: auto;
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  width: min(1000px, 100%);
  max-height: min(860px, 100vh - 40px);
  padding: 22px;
  box-shadow: 0 30px 100px #0000008c;
}

.subjectSheetHead {
  display: flex;
  border-bottom: 1px solid var(--line-2);
  justify-content: space-between;
  align-items:  flex-start;
  gap: 20px;
  padding-bottom: 15px;
}

.subjectSheetHead h2 {
  margin: 3px 0;
  font-size: 30px;
}

.subjectSheetHead p {
  color: var(--muted);
  margin: 0;
}

.subjectSheetHead > button {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  cursor: pointer;
  border-radius: 50%;
  flex: none;
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.subjectSheet > h3 {
  margin: 22px 0 10px;
  font-size: 15px;
}

.subjectParallelGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  overflow-x: auto;
  gap: 8px;
}

.subjectParallelGrid article, .subjectCopyGrid article {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  min-width: 0;
  padding: 10px;
}

.subjectParallelGrid span, .subjectParallelGrid strong, .subjectParallelGrid small, .subjectCopyGrid strong, .subjectCopyGrid small, .subjectCopyGrid span {
  display: block;
}

.subjectParallelGrid span {
  color: var(--accent);
  font: 700 10px var(--font-display);
  text-transform: uppercase;
}

.subjectParallelGrid strong {
  margin: 3px 0;
  font-size: 12px;
}

.subjectParallelGrid small, .subjectCopyGrid small, .subjectCopyGrid > article > span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.subjectCopyGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 9px;
}

.subjectCopyGrid article {
  display: flex;
  flex-direction: column;
}

.subjectCopyGrid article.isSelected, .subjectCopyGrid article.isOwned {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.subjectCopyGrid a {
  display: flex;
  color: inherit;
  justify-content: center;
  align-items:  center;
  height: 100px;
}

.subjectCopyGrid a.isOtherCollector {
  opacity: .42;
  filter: grayscale(1) saturate(.1);
}

.subjectCopyGrid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 11px;
}

.subjectCopyGrid button {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xs);
  cursor: pointer;
  margin-top: 8px;
  padding: 6px;
  font-size: 10px;
}

.subjectCopyGrid button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: .65;
}

.subjectMarketplaceCallout {
  display: flex;
  background: linear-gradient(120deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  justify-content: space-between;
  align-items:  center;
  gap: 18px;
  margin-top: 22px;
  padding: 14px;
}

.subjectMarketplaceCallout span {
  color: var(--muted);
  max-width: 680px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .bookShelfHeading, .petBookOpenHead {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .bookShelfHeading > p, .petBookCompletion {
    text-align: left;
  }

  .createBookPanel, .binderBuilder {
    grid-template-columns: 1fr;
  }

  .officialBinderGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .petBookOpen {
    padding: 12px;
  }

  .subjectSheetBackdrop {
    padding: 8px;
  }

  .subjectSheet {
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  .subjectMarketplaceCallout {
    flex-direction: column;
    align-items:  flex-start;
  }
}

@media (max-width: 1180px) {
  .collectionTools {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collectionSearch {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .collectionTools {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .collectionSearch {
    grid-column: 1 / -1;
  }

  .clearFilters {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .collectionWorkspaceNav {
    margin-top: calc(-1 * var(--s-2));
    overflow-x: auto;
    justify-content: flex-start;
    max-width: 100%;
  }

  .collectionWorkspaceNav button, .collectionWorkspaceNav a {
    flex: none;
    padding: 7px 9px;
  }

  .collectionHero {
    align-items:  flex-start;
    gap: var(--s-4);
    padding-top: var(--s-5);
    flex-direction: column;
  }

  .collectionCount {
    box-sizing: border-box;
    text-align: left;
    width: 100%;
  }

  .collectionTools {
    grid-template-columns: 1fr;
  }

  .collectionSearch {
    grid-column: auto;
  }

  .collectionResultsHeader {
    flex-direction: column;
    align-items:  flex-start;
  }

  .collectionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2);
  }

  .collectionPetArt {
    height: 138px;
  }

  .collectionPetBody {
    padding: 10px;
  }

  .collectionPetActions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .collectionGrid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.marketPage {
  padding-bottom: 64px;
}

.marketHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items:  end;
  gap: 28px;
  padding: 58px 0 30px;
}

.marketHero h1 {
  letter-spacing: -.065em;
  margin: 8px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: .92;
}

.marketHero p {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.walletCard {
  border: 1px solid var(--line);
  display: flex;
  background: linear-gradient(145deg, #6366f11f, #ffffff06);
  border-radius: 22px;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
}

.walletCard span, .walletCard small {
  color: var(--muted);
}

.walletCard strong {
  letter-spacing: -.05em;
  font-size: 2.15rem;
}

.marketControls {
  display: flex;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  align-items:  end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
}

.marketSearch {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.marketSearch span {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

.marketSearch input, .marketDesk input, .marketDesk select {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  border-radius: 11px;
  width: 100%;
  padding: 12px 13px;
}

.marketPolicy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 310px;
}

.marketPolicy span {
  color: var(--muted);
  font-size: .86rem;
}

.marketDesk {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  margin: 18px 0 34px;
}

.marketDesk > div {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
}

.marketDesk h2 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.marketDesk p, .marketDesk small {
  color: var(--muted);
  margin: 0 0 14px;
}

.marketDesk select {
  margin-bottom: 10px;
}

.marketInline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items:  center;
  gap: 8px;
}

.marketInline > span {
  font-weight: 900;
}

.marketInline button, .marketPrice button, .marketPrice a {
  color: #161827;
  white-space: nowrap;
  text-decoration: none;
  background: #eef0ff;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 850;
}

.marketInline button:disabled, .marketPrice button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.marketSectionTitle {
  display: flex;
  justify-content: space-between;
  align-items:  end;
  margin: 28px 0 14px;
}

.marketSectionTitle > div > span {
  letter-spacing: .15em;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
}

.marketSectionTitle h2 {
  margin: 3px 0 0;
  font-size: 1.6rem;
}

.marketSectionTitle > span {
  color: var(--muted);
}

.marketGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.marketCard {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  border-radius: 20px;
  transition: transform .18s, border-color .18s;
}

.marketCard:hover {
  border-color: #8b8fff7a;
  transform: translateY(-2px);
}

.marketPetArt {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 70%, #7c7fff29, #0000 58%);
  justify-content: center;
  align-items:  center;
  min-height: 180px;
}

.marketPetArt svg {
  transform: scale(1.15);
}

.marketCardBody {
  padding: 16px;
}

.marketCardTitle {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
}

.marketCardTitle a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 900;
}

.marketCardTitle > span {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 850;
}

.marketTraits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.marketTraits span {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: .7rem;
}

.marketSeller {
  color: var(--muted);
  text-decoration: none;
  font-size: .77rem;
}

.marketPrice {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items:  end;
  margin-top: 18px;
  padding-top: 13px;
}

.marketPrice > div {
  display: flex;
  flex-direction: column;
}

.marketPrice strong {
  letter-spacing: -.04em;
  font-size: 1.35rem;
}

.marketPrice small {
  color: var(--muted);
}

.marketTrust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.marketTrust > div {
  display: flex;
  border-top: 1px solid var(--line);
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.marketTrust span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.marketLegal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 0;
  font-size: .82rem;
}

.marketLegal a {
  color: var(--muted);
}

.marketLegal a:hover {
  color: var(--text);
}

.policyPage {
  max-width: 980px;
}

.policyHero {
  border-bottom: 1px solid var(--line);
  padding: 72px 0 28px;
}

.policyHero > span {
  letter-spacing: .18em;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
}

.policyHero h1 {
  margin: 10px 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}

.policyHero p {
  color: var(--muted);
}

.policyNav {
  display: flex;
  position: sticky;
  z-index: 4;
  background: var(--bg);
  gap: 8px;
  padding: 20px 0;
  top: 0;
}

.policyNav a {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .84rem;
}

.policyNav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0f;
}

.policyBody {
  max-width: 760px;
  padding: 18px 0 70px;
}

.policyBody h2 {
  margin: 38px 0 12px;
  font-size: 1.55rem;
}

.policyBody p, .policyBody li {
  color: var(--muted);
  line-height: 1.75;
}

.policyBody ul {
  padding-left: 22px;
}

.policyFooter {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  gap: 24px;
  padding: 30px 0 60px;
}

.policyFooter p {
  color: var(--muted);
  margin: 6px 0;
}

.policyFooter > a {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
}

@media (max-width: 860px) {
  .marketHero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .walletCard {
    max-width: none;
  }

  .marketDesk {
    grid-template-columns: 1fr;
  }

  .marketGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketTrust {
    grid-template-columns: 1fr;
  }

  .marketControls {
    flex-direction: column;
    align-items: stretch;
  }

  .marketPolicy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .marketGrid {
    grid-template-columns: 1fr;
  }

  .marketHero h1 {
    font-size: 3.2rem;
  }

  .marketInline {
    grid-template-columns: auto 1fr;
  }

  .marketInline button {
    grid-column: 1 / -1;
  }

  .marketDesk > div {
    padding: 16px;
  }
}

.ownershipTimeline {
  display: flex;
  flex-direction: column;
}

.ownershipTimeline > div {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  border-top: 1px solid var(--line);
  align-items:  start;
  gap: 12px;
  padding: 13px 0;
}

.ownershipTimeline > div > span {
  display: grid;
  background: #7c7fff21;
  border-radius: 50%;
  place-items:  center;
  width: 28px;
  height: 28px;
  font-size: .73rem;
  font-weight: 850;
}

.ownershipTimeline strong {
  font-size: .9rem;
}

.ownershipTimeline p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: .82rem;
}

.ownershipTimeline time {
  color: var(--muted);
  font-size: .75rem;
}

.marketPage {
  overflow-x: clip;
}

.marketHero > *, .marketControls > * {
  min-width: 0;
}

.marketHero p {
  overflow-wrap: anywhere;
}

.walletCard {
  min-width: 0;
}

.marketSearch input, .marketDesk input, .marketDesk select {
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 560px) {
  .marketHero h1 {
    font-size: clamp(2.45rem, 13vw, 3rem);
  }

  .marketHero p {
    font-size: 1rem;
  }

  .walletCard {
    padding: 18px;
  }

  .marketControls {
    padding: 14px;
  }
}

.marketTabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  gap: 8px;
  margin: -2px 0 22px;
  padding: 6px;
}

.marketTabs button {
  display: flex;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 12px;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 15px;
}

.marketTabs button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 8px #00000014;
}

.marketTabs strong {
  font-size: .93rem;
}

.marketTabs span {
  font-size: .75rem;
}

.tradeSignIn {
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  border-radius: 24px;
  max-width: 620px;
  margin: 52px auto;
  padding: 38px;
}

.tradeSignIn > span, .tradeComposer > header > div > span {
  letter-spacing: .15em;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
}

.tradeSignIn h2 {
  margin: 8px 0;
  font-size: 2rem;
}

.tradeSignIn p {
  color: var(--muted);
  line-height: 1.6;
}

.tradeSignIn a {
  display: inline-block;
  color: #161827;
  text-decoration: none;
  background: #eef0ff;
  border-radius: 11px;
  margin-top: 10px;
  padding: 11px 18px;
  font-weight: 850;
}

.tradeComposer {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  border-radius: 24px;
}

.tradeComposer > header {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  gap: 20px;
  padding: 22px 24px;
}

.tradeComposer h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
}

.tradeFeeCallout {
  display: flex;
  flex-direction: column;
  align-items:  flex-end;
}

.tradeFeeCallout strong {
  font-size: 1rem;
}

.tradeFeeCallout span {
  color: var(--muted);
  font-size: .75rem;
}

.tradeCollectorSearch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  align-items:  end;
  gap: 18px;
  padding: 20px 24px;
}

.tradeCollectorSearch label > span, .tradeSend label > span {
  display: block;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-size: .72rem;
  font-weight: 800;
}

.tradeCollectorSearch label > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  border-radius: 12px;
  align-items:  center;
}

.tradeCollectorSearch label > div > span {
  color: var(--muted);
  padding-left: 13px;
  font-weight: 800;
}

.tradeCollectorSearch input {
  outline: 0;
  color: var(--text);
  font: inherit;
  background: none;
  border: 0;
  min-width: 0;
  padding: 12px 8px;
}

.tradeCollectorSearch button, .tradeSend button, .tradeCard footer button {
  color: #161827;
  cursor: pointer;
  background: #eef0ff;
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  font-weight: 850;
}

.tradeCollectorSearch button {
  margin-right: 4px;
}

.tradeCollectorSearch button:disabled, .tradeSend button:disabled, .tradeCard footer button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tradeCollectorFound {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.tradeCollectorFound span, .tradeCollectorFound small {
  color: var(--muted);
  font-size: .74rem;
}

.tradeCollectorFound strong {
  margin: 2px 0;
}

.tradeBuild {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: stretch;
}

.tradeBuildArrow {
  display: grid;
  color: var(--muted);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  place-items:  center;
}

.tradePicker {
  min-width: 0;
  padding: 20px 24px;
}

.tradePickerHead {
  display: flex;
  justify-content: space-between;
  align-items:  start;
  gap: 12px;
  margin-bottom: 12px;
}

.tradePickerHead h3 {
  margin: 0;
  font-size: 1rem;
}

.tradePickerHead p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: .78rem;
}

.tradePickerHead > strong {
  color: var(--muted);
  font-size: .75rem;
}

.tradePetGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: auto;
  gap: 7px;
  max-height: 330px;
  padding-right: 3px;
}

.tradePet {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  align-items:  center;
  gap: 8px;
  min-width: 0;
  padding: 7px;
}

.tradePet.active {
  background: #7c7fff17;
  border-color: #8b8fff;
}

.tradePetArt {
  display: grid;
  overflow: hidden;
  background: #7c7fff14;
  border-radius: 8px;
  place-items:  center;
  height: 50px;
}

.tradePetArt svg {
  transform: scale(.48);
}

.tradePetCopy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tradePetCopy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
}

.tradePetCopy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .66rem;
}

.tradeCheck {
  display: grid;
  background: #7c7fff26;
  border-radius: 50%;
  place-items:  center;
  width: 21px;
  height: 21px;
  font-size: .72rem;
  font-weight: 900;
}

.tradePickerEmpty {
  display: grid;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  border-radius: 12px;
  place-items:  center;
  min-height: 112px;
  padding: 18px;
  font-size: .82rem;
}

.tradeSend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
  border-top: 1px solid var(--line);
  gap: 18px;
  padding: 20px 24px;
}

.tradeSend textarea {
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  border-radius: 11px;
  width: 100%;
  min-height: 76px;
  padding: 11px 12px;
}

.tradeSend > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items:  center;
  gap: 8px;
}

.tradeSend p {
  color: var(--muted);
  text-align: right;
  flex-basis: 100%;
  margin: 0;
  font-size: .78rem;
}

.tradeCancelCounter {
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  background: none !important;
}

.tradeList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tradeCard {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 19px;
  padding: 18px 20px;
}

.tradeCard > header, .tradeCard > footer {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 14px;
}

.tradeCard > header h3 {
  display: inline;
  margin: 0 0 0 8px;
  font-size: 1rem;
}

.tradeCard > header time {
  color: var(--muted);
  font-size: .75rem;
}

.tradeStatus {
  display: inline-block;
  border: 1px solid var(--line);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: .62rem;
  font-weight: 850;
}

.tradeStatus.pending {
  color: #8b8fff;
  border-color: #7c7fff66;
}

.tradeStatus.accepted {
  color: #35b979;
  border-color: #28be7859;
}

.tradeCard blockquote {
  color: var(--muted);
  background: #7c7fff0f;
  border-left: 2px solid #7c7fff;
  margin: 12px 0 0;
  padding: 10px 13px;
  font-size: .82rem;
}

.tradeSides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items:  center;
  gap: 8px;
  margin: 16px 0;
}

.tradeSides > div:not(.tradeArrow) > span {
  display: block;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-size: .69rem;
  font-weight: 850;
}

.tradeArrow {
  color: var(--muted);
  text-align: center;
}

.tradePetStrip {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 3px;
}

.tradePetStrip a {
  display: grid;
  grid-template-columns: 40px minmax(75px, 1fr);
  grid-template-rows: auto auto;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  align-items:  center;
  gap: 0 7px;
  min-width: 150px;
  padding: 6px;
}

.tradePetStrip a > span {
  grid-row: 1 / 3;
  display: grid;
  overflow: hidden;
  place-items:  center;
  width: 40px;
  height: 40px;
}

.tradePetStrip svg {
  transform: scale(.38);
}

.tradePetStrip strong, .tradePetStrip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tradePetStrip strong {
  font-size: .72rem;
}

.tradePetStrip small {
  color: var(--muted);
  font-size: .61rem;
}

.tradeGift {
  display: grid;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  border-radius: 10px;
  place-items:  center;
  min-height: 52px;
  font-size: .75rem;
}

.tradeCard > footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tradeCard > footer > span {
  color: var(--muted);
  font-size: .75rem;
}

.tradeCard > footer > div {
  display: flex;
  gap: 7px;
}

.tradeCard footer .tradeSecondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: none;
}

@media (max-width: 860px) {
  .tradeBuild {
    grid-template-columns: 1fr;
  }

  .tradeBuildArrow {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 28px;
  }

  .tradeSend {
    grid-template-columns: 1fr;
  }

  .tradeSend p {
    text-align: left;
  }

  .tradeSend > div {
    justify-content: flex-start;
  }

  .tradeSides {
    grid-template-columns: 1fr;
  }

  .tradeSides > .tradeArrow {
    text-align: left;
  }

  .tradeCollectorSearch {
    grid-template-columns: 1fr;
  }

  .tradeCollectorFound {
    min-width: 0;
  }

  .tradeCard > footer {
    flex-direction: column;
    align-items:  flex-start;
  }

  .tradeCard > footer > div {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .marketTabs button {
    flex-direction: column;
    align-items:  flex-start;
    gap: 3px;
  }

  .tradeComposer > header {
    flex-direction: column;
    align-items:  flex-start;
    padding: 18px;
  }

  .tradeFeeCallout {
    align-items:  flex-start;
  }

  .tradeCollectorSearch, .tradePicker, .tradeSend {
    padding: 16px;
  }

  .tradePetGrid {
    grid-template-columns: 1fr;
  }

  .tradeCollectorSearch label > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tradeCollectorSearch button {
    grid-column: 1 / -1;
    margin: 0 4px 4px;
    padding: 10px;
  }

  .tradeCard {
    padding: 15px;
  }

  .tradeCard > header {
    align-items:  flex-start;
  }

  .tradeCard > header h3 {
    display: block;
    margin: 7px 0 0;
  }

  .tradeCard > footer > div {
    width: 100%;
  }

  .tradeCard > footer button {
    flex: 1;
  }

  .tradeSignIn {
    padding: 26px 18px;
  }
}

.marketTabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practiceMarket {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  border-radius: 24px;
}

.practiceMarket > header {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  gap: 24px;
  padding: 24px;
}

.practiceMarket > header > div:first-child > span {
  letter-spacing: .15em;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
}

.practiceMarket h2 {
  margin: 6px 0;
  font-size: 1.55rem;
}

.practiceMarket header p {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
  line-height: 1.5;
}

.practiceBalance {
  display: grid;
  grid-template-columns: auto auto;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  align-items:  center;
  gap: 3px 12px;
  min-width: 170px;
  padding: 14px;
}

.practiceBalance span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .7rem;
}

.practiceBalance strong {
  font-size: 1.35rem;
}

.practiceBalance button {
  color: var(--accent-bright);
  cursor: pointer;
  background: none;
  border: 0;
  font-weight: 800;
}

.practiceSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practiceSteps > article {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 22px;
}

.practiceSteps > article:last-child {
  border: 0;
}

.practiceSteps > article > span {
  display: grid;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-radius: 50%;
  place-items:  center;
  width: 28px;
  height: 28px;
  font-weight: 900;
}

.practiceSteps h3 {
  margin: 12px 0 5px;
}

.practiceSteps p {
  color: var(--muted);
  min-height: 58px;
  margin: 0 0 14px;
  font-size: .82rem;
  line-height: 1.5;
}

.practicePets {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.practicePets > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 11px;
  align-items:  center;
  gap: 8px;
  padding: 7px;
}

.practicePets > div > span {
  display: grid;
  overflow: hidden;
  place-items:  center;
  width: 44px;
  height: 44px;
}

.practicePets svg {
  transform: scale(.4);
}

.practicePets > div > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.practicePets strong, .practicePets small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practicePets strong {
  font-size: .75rem;
}

.practicePets small {
  color: var(--muted);
  font-size: .65rem;
}

.practicePets button, .practiceSteps > article > button {
  color: #161827;
  cursor: pointer;
  background: #eef0ff;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 850;
}

.practicePets button:disabled, .practiceSteps > article > button:disabled {
  opacity: .45;
}

.practiceOffer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:  center;
  gap: 8px;
  margin-bottom: 12px;
}

.practiceOffer > div {
  display: flex;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  flex-direction: column;
  padding: 9px;
}

.practiceOffer strong {
  font-size: .68rem;
}

.practiceOffer span {
  color: var(--muted);
  font-size: .7rem;
}

.practiceSteps ol {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
  font-size: .76rem;
  line-height: 1.5;
}

.practiceEmpty {
  display: grid;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  border-radius: 11px;
  place-items:  center;
  min-height: 90px;
  font-size: .75rem;
}

.practiceSteps > article > button {
  width: 100%;
}

@media (max-width: 860px) {
  .practiceSteps {
    grid-template-columns: 1fr;
  }

  .practiceSteps > article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .practiceMarket > header {
    flex-direction: column;
    align-items:  flex-start;
  }

  .practiceBalance {
    box-sizing: border-box;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .marketTabs {
    grid-template-columns: 1fr;
  }

  .marketTabs button {
    flex-direction: row;
    align-items: baseline;
  }

  .practiceMarket > header, .practiceSteps > article {
    padding: 18px;
  }
}

.marketValueHead {
  display: flex;
  justify-content: space-between;
  align-items:  start;
  gap: 20px;
}

.marketValueHead > div > span {
  letter-spacing: .14em;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}

.marketValueHead h2 {
  margin: 5px 0;
}

.marketValueHead p {
  color: var(--muted);
  max-width: 740px;
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
}

.marketValueStats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.marketSales {
  margin-top: 20px;
}

.marketSales h3 {
  font-size: .9rem;
}

.marketSales > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  align-items:  center;
  gap: 16px;
  padding: 11px 0;
}

.marketSales > a > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.marketSales > a span, .marketSales time {
  color: var(--muted);
  font-size: .74rem;
}

.marketNoSales {
  display: flex;
  border: 1px dashed var(--line);
  border-radius: 13px;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
  padding: 20px;
}

.marketNoSales span, .marketValueDisclaimer {
  color: var(--muted);
  font-size: .76rem;
}

.marketValueDisclaimer {
  margin: 16px 0 0;
}

@media (max-width: 860px) {
  .marketValueStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketValueHead {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .marketSales > a {
    grid-template-columns: 1fr auto;
  }

  .marketSales time {
    grid-column: 1 / -1;
  }

  .marketValueStats {
    grid-template-columns: 1fr;
  }
}

.marketTabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.buyOrderComposer {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  border-radius: 22px;
}

.buyOrderComposer > header {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  start;
  gap: 18px;
  padding: 22px 24px;
}

.buyOrderComposer > header > div > span {
  letter-spacing: .14em;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}

.buyOrderComposer h2 {
  margin: 5px 0;
}

.buyOrderComposer header p {
  color: var(--muted);
  max-width: 700px;
  margin: 0;
  font-size: .83rem;
  line-height: 1.5;
}

.buyOrderTemplate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items:  end;
  gap: 16px;
  padding: 20px 24px;
}

.buyOrderTemplate label > span, .buyOrderTerms label > span {
  display: block;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: .7rem;
  font-weight: 800;
}

.buyOrderTemplate label > div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.buyOrderTemplate input, .buyOrderTerms input, .buyOrderTerms select, .buyOrderList select {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  min-width: 0;
  padding: 11px 12px;
}

.buyOrderTemplate input {
  border-radius: 10px 0 0 10px;
}

.buyOrderTemplate button, .buyOrderTerms > button, .buyOrderList button {
  color: #161827;
  cursor: pointer;
  background: #eef0ff;
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  font-weight: 850;
}

.buyOrderTemplate label button {
  border-radius: 0 10px 10px 0;
}

.buyOrderTemplate button:disabled, .buyOrderTerms > button:disabled, .buyOrderList button:disabled {
  opacity: .45;
}

.buyOrderTemplateFound {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items:  center;
  gap: 8px;
  min-width: 240px;
}

.buyOrderTemplateFound > span {
  display: grid;
  overflow: hidden;
  place-items:  center;
  width: 52px;
  height: 52px;
}

.buyOrderTemplateFound svg {
  transform: scale(.47);
}

.buyOrderTemplateFound > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.buyOrderTemplateFound small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .7rem;
}

.buyOrderTerms {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr auto;
  align-items:  end;
  gap: 12px;
  padding: 0 24px 22px;
}

.buyOrderTerms input, .buyOrderTerms select {
  border-radius: 10px;
  width: 100%;
}

.buyOrderMoney {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  align-items:  center;
}

.buyOrderMoney > span {
  padding-left: 11px;
  font-weight: 900;
}

.buyOrderMoney input {
  border: 0;
}

.buyOrderList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buyOrderList > article {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 17px;
}

.buyOrderList article > header, .buyOrderList article > footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.buyOrderList article > header > div:first-child > span {
  letter-spacing: .12em;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 850;
}

.buyOrderList h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.buyOrderList p {
  color: var(--muted);
  margin: 0;
  font-size: .76rem;
}

.buyOrderList header > div:last-child {
  display: flex;
  flex-direction: column;
  align-items:  flex-end;
}

.buyOrderList header > div:last-child > strong {
  font-size: 1.25rem;
}

.buyOrderList small {
  color: var(--muted);
  font-size: .67rem;
}

.buyOrderList footer {
  border-top: 1px solid var(--line);
  align-items:  center;
  margin-top: 16px;
  padding-top: 12px;
}

.buyOrderList footer > a {
  color: var(--muted);
  text-decoration: none;
  font-size: .75rem;
}

.buyOrderList footer > div {
  display: flex;
  gap: 7px;
  min-width: 0;
}

.buyOrderList select {
  border-radius: 9px;
  max-width: 230px;
  padding: 8px;
}

.buyOrderList .tradeSecondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: none;
}

@media (max-width: 960px) {
  .marketTabs, .buyOrderTerms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buyOrderList {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .marketTabs {
    grid-template-columns: 1fr;
  }

  .buyOrderComposer > header, .buyOrderTemplate {
    grid-template-columns: 1fr;
    flex-direction: column;
    padding: 18px;
  }

  .buyOrderTemplateFound {
    min-width: 0;
  }

  .buyOrderTerms {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .buyOrderList article > header, .buyOrderList article > footer {
    flex-direction: column;
    align-items:  flex-start;
  }

  .buyOrderList header > div:last-child {
    align-items:  flex-start;
  }

  .buyOrderList footer > div {
    flex-direction: column;
    width: 100%;
  }

  .buyOrderList select {
    width: 100%;
    max-width: none;
  }
}

.marketTabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.auctionComposer {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  border-radius: 22px;
}

.auctionComposer > header {
  border-bottom: 1px solid var(--line);
  padding: 21px 24px;
}

.auctionComposer > header span {
  letter-spacing: .14em;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}

.auctionComposer h2 {
  margin: 5px 0;
}

.auctionComposer p {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
}

.auctionComposer > div {
  display: grid;
  grid-template-columns: 1.25fr .7fr .7fr .65fr auto;
  align-items:  end;
  gap: 10px;
  padding: 20px 24px;
}

.auctionComposer label > span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
  font-size: .68rem;
  font-weight: 800;
}

.auctionComposer label > div {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  align-items:  center;
}

.auctionComposer label b {
  padding-left: 10px;
}

.auctionComposer input, .auctionComposer select {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
}

.auctionComposer label > div input {
  border: 0;
}

.auctionComposer > div > button, .auctionBody footer button {
  color: #161827;
  background: #eef0ff;
  border: 0;
  border-radius: 9px;
  padding: 11px 13px;
  font-weight: 850;
}

.auctionComposer button:disabled, .auctionBody footer button:disabled {
  opacity: .45;
}

.auctionGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auctionGrid > article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 19px;
}

.auctionArt {
  display: grid;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 70%, #7c7fff29, #0000 58%);
  place-items:  center;
  min-height: 165px;
}

.auctionArt svg {
  transform: scale(1.05);
}

.auctionBody {
  padding: 15px;
}

.auctionTitle {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auctionTitle h3 {
  margin: 0;
}

.auctionTitle > div {
  display: flex;
  flex-direction: column;
}

.auctionTitle > div > span, .auctionTitle small {
  color: var(--muted);
  font-size: .68rem;
}

.auctionTitle > div:last-child {
  align-items:  flex-end;
}

.auctionTitle > div:last-child strong {
  font-size: 1.2rem;
}

.auctionMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0;
}

.auctionMeta span {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: .65rem;
}

.auctionBody footer {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  padding-top: 12px;
}

.auctionBody footer > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  border-radius: 10px;
  align-items:  center;
  max-width: 230px;
}

.auctionBody footer > div > span {
  padding-left: 8px;
}

.auctionBody footer input {
  box-sizing: border-box;
  color: var(--text);
  font: inherit;
  background: none;
  border: 0;
  width: 100%;
  min-width: 0;
  padding: 9px 5px;
}

.auctionBody footer button {
  padding: 9px;
}

.auctionBody footer > a {
  color: var(--muted);
  text-decoration: none;
  font-size: .68rem;
}

.auctionBody footer > .tradeSecondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: none;
}

@media (max-width: 1100px) {
  .marketTabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auctionComposer > div, .auctionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .marketTabs, .auctionComposer > div, .auctionGrid {
    grid-template-columns: 1fr;
  }

  .auctionComposer > header, .auctionComposer > div {
    padding: 18px;
  }

  .auctionBody footer {
    flex-direction: column;
    align-items:  flex-start;
  }

  .auctionBody footer > div {
    width: 100%;
    max-width: none;
  }

  .policyFooter {
    flex-direction: column;
    align-items:  flex-start;
  }

  .policyNav {
    overflow-x: auto;
  }

  .policyNav a {
    white-space: nowrap;
  }
}

.walletReceipts {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 15px;
  margin: -20px 0 30px;
}

.walletReceipts summary {
  display: flex;
  cursor: pointer;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 850;
}

.walletReceipts summary span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
}

.walletReceipts > div {
  padding: 0 16px 10px;
}

.walletReceipts article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-top: 1px solid var(--line);
  align-items:  center;
  gap: 14px;
  padding: 10px 0;
}

.walletReceipts article > div {
  display: flex;
  flex-direction: column;
}

.walletReceipts strong {
  text-transform: capitalize;
  font-size: .78rem;
}

.walletReceipts code, .walletReceipts time {
  color: var(--muted);
  font-size: .65rem;
}

.walletReceipts .credit {
  color: #35b979;
}

.walletReceipts .debit {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 560px) {
  .walletReceipts article {
    grid-template-columns: 1fr auto;
  }

  .walletReceipts time {
    grid-column: 1 / -1;
  }
}

.exchangePage {
  padding-bottom: 80px;
}

.exchangeHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  border-bottom: 1px solid var(--line);
  align-items:  end;
  gap: 34px;
  padding: 62px 0 34px;
}

.exchangeHero h1 {
  letter-spacing: -.065em;
  margin: 10px 0 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .9;
}

.exchangeHero p {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.exchangeHeroStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.exchangeHeroStats > div {
  display: flex;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
}

.exchangeHeroStats strong {
  font-size: 1.3rem;
}

.exchangeHeroStats span {
  color: var(--muted);
  font-size: .7rem;
}

.exchangeWatch {
  display: flex;
  background: linear-gradient(135deg, #7c7fff1f, var(--card));
  border: 1px solid #7c7fff59;
  border-radius: 19px;
  justify-content: space-between;
  align-items:  center;
  gap: 24px;
  margin: 26px 0;
  padding: 22px;
}

.exchangeWatch > div:first-child > span, .exchangeSection > header > div > span {
  letter-spacing: .14em;
  color: var(--accent);
  font-size: .67rem;
  font-weight: 850;
}

.exchangeWatch h2 {
  margin: 4px 0;
}

.exchangeWatch p {
  color: var(--muted);
  margin: 0;
}

.exchangeWatch > div:last-child {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.exchangeWatch select, .exchangeWatch input {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  padding: 10px;
}

.exchangeWatch label {
  display: grid;
  grid-template-columns: auto 100px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  border-radius: 10px;
  align-items:  center;
}

.exchangeWatch label span {
  padding-left: 10px;
}

.exchangeWatch label input {
  border: 0;
}

.exchangeWatch button {
  color: #161827;
  background: #eef0ff;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 850;
}

.exchangeWatch .tradeSecondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: none;
}

.exchangeNotice {
  background: #7c7fff1c;
  border-radius: 10px;
  padding: 11px 14px;
}

.exchangeSection {
  margin-top: 48px;
}

.exchangeSection > header {
  display: flex;
  justify-content: space-between;
  align-items:  end;
  gap: 24px;
  margin-bottom: 15px;
}

.exchangeSection > header h2 {
  margin: 4px 0 0;
  font-size: 1.75rem;
}

.exchangeSection > header p {
  color: var(--muted);
  max-width: 580px;
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
}

.exchangePopulation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.exchangePopulation article {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 17px;
  padding: 17px;
}

.exchangePopulation article > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.exchangePopulation article > div > strong {
  text-transform: capitalize;
}

.exchangePopulation dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.exchangePopulation dl > div {
  display: flex;
  flex-direction: column;
}

.exchangePopulation dt, .exchangePopulation small {
  color: var(--muted);
  font-size: .66rem;
}

.exchangePopulation dd {
  margin: 2px 0;
  font-weight: 850;
}

.exchangePopulation i {
  display: block;
  background: var(--line);
  overflow: hidden;
  border-radius: 999px;
  height: 4px;
  margin-top: 13px;
}

.exchangePopulation i b {
  display: block;
  background: var(--accent);
  height: 100%;
}

.exchangeMarketColumns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.exchangeMarketColumns > div {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 17px;
}

.exchangeMarketColumns h3 {
  margin: 0 0 12px;
}

.exchangeMarketColumns p {
  color: var(--muted);
}

.exchangeMarketRow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  align-items:  center;
  gap: 10px;
  padding: 10px 0;
}

.exchangeMarketRow > span {
  display: grid;
  place-items:  center;
  width: 48px;
  height: 48px;
}

.exchangeMarketRow svg {
  max-width: 48px;
  max-height: 48px;
}

.exchangeMarketRow > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.exchangeMarketRow small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchangeCopies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.exchangeCopy {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  align-items:  center;
  gap: 12px;
  padding: 13px;
}

.exchangeCopy.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.exchangeArt {
  display: grid;
  background: #7c7fff12;
  border-radius: 13px;
  place-items:  center;
  height: 112px;
}

.exchangeArt svg {
  max-width: 100px;
  max-height: 100px;
}

.exchangeCopy > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.exchangeCopy > div span, .exchangeCopy > div a {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
}

.exchangeCopy > button {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  color: var(--text);
  background: none;
  border-radius: 9px;
  padding: 8px;
  font-weight: 750;
}

.exchangeCompare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 14px;
}

.exchangeCompare table {
  border-collapse: collapse;
  width: 100%;
  min-width: 570px;
}

.exchangeCompare th, .exchangeCompare td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 11px 14px;
}

.exchangeCompare th {
  text-transform: capitalize;
  color: var(--muted);
  font-size: .7rem;
}

.exchangeRecords > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.exchangeRecords article {
  display: grid;
  grid-template-columns: 72px 1fr;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 17px;
  align-items:  center;
  gap: 3px 12px;
  padding: 16px;
}

.exchangeRecords article > a {
  grid-row: 1 / 3;
  display: grid;
  place-items:  center;
}

.exchangeRecords svg {
  max-width: 68px;
  max-height: 68px;
}

.exchangeRecords span {
  color: var(--muted);
  font-size: .72rem;
}

.exchangeRecords strong {
  font-size: 1.1rem;
}

.exchangeCensus {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.exchangeCensus article {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
}

.exchangeCensus h3 {
  text-transform: capitalize;
  margin: 0 0 10px;
}

.exchangeCensus article > div {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: .73rem;
}

.exchangeCensus article > div span {
  color: var(--muted);
}

.exchangeSaleStats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.exchangeSaleStats article {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
}

.exchangeSaleStats span, .exchangeSaleStats small {
  color: var(--muted);
  font-size: .7rem;
}

.exchangeSales {
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 15px;
}

.exchangeSales > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  align-items:  center;
  gap: 20px;
  padding: 13px 16px;
}

.exchangeSales > a:first-child {
  border-top: 0;
}

.exchangeSales > a > div {
  display: flex;
  flex-direction: column;
}

.exchangeSales span, .exchangeSales time {
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 1000px) {
  .exchangeHero {
    grid-template-columns: 1fr;
  }

  .exchangePopulation {
    grid-template-columns: repeat(2, 1fr);
  }

  .exchangeMarketColumns {
    grid-template-columns: 1fr;
  }

  .exchangeCopies {
    grid-template-columns: repeat(2, 1fr);
  }

  .exchangeCensus {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .exchangeHero {
    padding-top: 34px;
  }

  .exchangeHeroStats {
    grid-template-columns: 1fr;
  }

  .exchangeWatch, .exchangeSection > header {
    flex-direction: column;
    align-items:  flex-start;
  }

  .exchangeWatch > div:last-child {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .exchangeWatch label {
    grid-template-columns: auto 1fr;
  }

  .exchangePopulation, .exchangeCopies, .exchangeRecords > div, .exchangeCensus, .exchangeSaleStats {
    grid-template-columns: 1fr;
  }

  .exchangeSales > a {
    grid-template-columns: 1fr auto;
  }

  .exchangeSales time {
    grid-column: 1 / -1;
  }

  .exchangeCopy {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
