@font-face {
  font-family: Jakarta;
  src: url("/assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("/assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("/assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #151619;
  --panel: #222428;
  --raised: #2c2e33;
  --line: #ffffff14;
  --text: #f5f3ed;
  --muted: #b5b6bb;
  --gold: #f4ce73;
  --sage: #9dccaa;
  --loss: #ee8c82;
  /* The app's Theme.swift, mirrored: see DESIGN.md. */
  --bg-elevated: #1c1e21;
  --raised-hover: #35363b;
  --line-faint: #ffffff0a;
  --line-strong: #ffffff26;
  --gold-hover: #ffdf93;
  --gold-faint: #f4ce7314;
  --gold-soft: #f4ce731f;
  --gold-edge: #f4ce7340;
  --gold-line: #f4ce7366;
  --warning: #f0b05e;
  --r-chip: 8px;
  --r-control: 12px;
  --r-card: 14px;
  --r-action: 16px;
  --r-panel: 20px;
  --r-pill: 999px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 34px;
  --text-5xl: 40px;
  --font: Jakarta, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
main {
  overflow-x: clip;
}
button,
input,
select {
  font: inherit;
}
/* A dropdown's list is drawn by the operating system. Without these, Windows
 * (and some browsers on Linux) paint it white under our light text, so the
 * choices vanish. */
select {
  color-scheme: dark;
}
select option,
select optgroup {
  background-color: var(--panel);
  color: var(--text);
}
button,
a,
label {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(38px, 5vw, 68px);
}
h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}
h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}
p {
  color: var(--muted);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
::selection {
  background: var(--gold);
  color: var(--bg);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: calc(100% - 64px);
  max-width: 1200px;
  margin-inline: auto;
}
.section {
  padding-block: 100px;
}
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}
.micro,
.data-note {
  font-size: var(--text-xs);
  line-height: 1.7;
}
.data-note {
  margin-top: 22px;
}
.section-lede {
  font-size: var(--text-lg);
  line-height: 1.65;
  margin-top: 24px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold);
  color: var(--bg);
  padding: 14px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.2;
  color: var(--text);
}
.brand img {
  margin-right: 10px;
}
.brand span {
  color: var(--gold);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: var(--text-md);
}
.nav nav > a {
  color: var(--muted);
  white-space: nowrap;
}
.nav nav > a:hover,
.nav nav > a[aria-current="page"] {
  color: var(--gold);
}
.nav nav .nav-app {
  border: 1px solid var(--gold-edge);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: var(--r-control);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-control);
  min-height: 44px;
  font-size: var(--text-md);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--r-action);
  padding: 14px 22px;
  min-height: 52px;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button.primary {
  background: var(--gold);
  color: var(--bg);
}
.button.primary:hover {
  background: var(--gold-hover);
}
.button.secondary {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text);
}
.button.danger {
  background: var(--loss);
  color: var(--bg);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gold);
  padding-block: 10px;
}
.text-link:hover {
  color: var(--gold-hover);
}
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 35px;
  align-items: center;
  min-height: 740px;
  padding-block: 55px 35px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h1 span {
  color: var(--gold);
}
.hero .lede {
  font-size: var(--text-xl);
  line-height: 1.6;
  max-width: 480px;
  margin: 28px 0 16px;
  color: var(--text);
}
.hero .actions {
  margin-top: 30px;
  gap: 22px;
}
.hero-stage {
  height: 630px;
  position: relative;
  display: grid;
  place-items: center;
  padding-bottom: 36px;
  isolation: isolate;
}
.showcase-halo,
.showcase-light {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.showcase-halo {
  inset: 0 -25px;
  background: radial-gradient(ellipse at 50% 48%, var(--gold-soft), transparent 65%);
}
.showcase-light {
  width: 110%;
  height: 85%;
  left: -5%;
  top: 7%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    var(--gold-soft) 0%,
    var(--gold-faint) 25%,
    transparent 62%
  );
  filter: blur(24px);
  transform: translate(
    calc(var(--move-x, 0px) * 8),
    calc(var(--move-y, 0px) * 8)
  );
  opacity: var(--pointer-active, 0);
}
.device-motion {
  position: relative;
  transform: perspective(1100px)
    translate3d(var(--move-x, 0px), var(--move-y, 0px), 0)
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    rotateZ(var(--rest-rotation, -1.5deg));
  transform-style: preserve-3d;
}
.motion-active .device-motion {
  will-change: transform;
}
.hero-device {
  width: 270px;
}
.phone {
  position: relative;
  border: 6px solid var(--raised-hover);
  border-radius: 39px;
  overflow: hidden;
  background: var(--bg);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 28px 55px #0008,
    0 5px 12px #0005;
}
.phone::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 30% at var(--phone-light-x, 50%) var(--phone-light-y, 50%),
    var(--line-strong),
    var(--line-faint) 45%,
    transparent 100%
  );
  opacity: var(--phone-active, 0);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 31px;
  user-select: none;
  -webkit-user-drag: none;
}
.stage-note {
  position: absolute;
  bottom: 5px;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--r-panel);
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.card-tile:hover {
  transform: translateY(-6px);
  border-color: var(--gold-edge);
  box-shadow: 0 12px 35px #0003;
}
.card-art {
  width: 100%;
  height: auto;
  aspect-ratio: 600/825;
  object-fit: contain;
  overflow: hidden;
  border-radius: var(--r-control);
  background: var(--panel);
}
.art-unavailable {
  container-type: inline-size;
  aspect-ratio: 600/825;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12%;
  /* The back of a card (card-back.webp), dimmed, with the card's name over it. */
  border-radius: 4.5% / 3.3%;
  background:
    radial-gradient(closest-side at 50% 50%, #000000b8 40%, #00000075 100%),
    url("card-back.webp") center / 100% 100% no-repeat;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px #000b;
}
.art-unavailable strong {
  font-size: clamp(14px, 11cqw, 30px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.art-unavailable span {
  font-size: clamp(12px, 7cqw, 18px);
  color: #ffffffcc;
}
.card-tile h3 {
  font-size: var(--text-base);
  margin-top: 18px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.card-meta {
  font-size: var(--text-xs);
  margin-top: 5px;
  min-height: 40px;
}
.card-tile .price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-top: 16px;
}
.quote-note {
  font-size: var(--text-xs);
  line-height: 1.65;
  margin-top: 5px;
}
.quote-note .source {
  color: var(--muted);
}
.card-tile .card-link {
  display: block;
  flex: 1;
}
.card-tile .card-link:focus-visible {
  outline-offset: 9px;
}
.tile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.featured-grid {
  gap: 32px;
}
.featured-card {
  min-width: 0;
}
.featured-link {
  display: block;
}
.featured-link .card-art {
  background: transparent;
  border-radius: var(--r-chip);
  box-shadow: 0 14px 28px #0004;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s;
}
.featured-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 12px;
  margin-top: 14px;
}
.featured-caption h3 {
  font-size: var(--text-base);
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.featured-caption p {
  grid-column: 1/-1;
  font-size: var(--text-xs);
  line-height: 1.5;
  margin-top: 0;
}
.featured-caption .featured-price {
  grid-column: 1 / -1;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-top: 3px;
}
.featured-caption .featured-price.unavailable {
  font-size: var(--text-md);
  color: var(--muted);
}
.featured-price-context {
  font-size: var(--text-xs);
  line-height: 1.7;
  margin-top: 24px;
  color: var(--muted);
}
.featured-quote-details {
  font-size: var(--text-xs);
  line-height: 1.6;
  margin-top: 8px;
  color: var(--muted);
}
.featured-quote-details summary {
  cursor: pointer;
  padding-block: 5px;
}
.featured-quote-details p {
  margin-top: 6px;
}
.featured-arrow {
  line-height: 1.4;
  align-self: center;
  color: var(--gold);
  font-size: var(--text-base);
  transition: translate 0.25s;
}
.featured-link:hover .featured-arrow {
  translate: 2px -2px;
}
.featured-link:focus-visible {
  outline-offset: 8px;
  border-radius: var(--r-chip);
}
.feature-caption {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}
.faq-section .section-lede {
  font-size: var(--text-base);
}
.faq-list details {
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 0;
}
.faq-list details:first-child {
  padding-top: 0;
}
.faq-list summary {
  font-size: var(--text-base);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}
.faq-list summary:after {
  content: "+";
  color: var(--gold);
  font-size: var(--text-2xl);
  font-weight: 400;
}
.faq-list details[open] summary:after {
  content: "−";
}
.faq-list details p {
  font-size: var(--text-md);
  margin-top: 18px;
  max-width: 550px;
}
.download-section {
  background:
    radial-gradient(ellipse at 70% 80%, var(--gold-faint), transparent 60%), var(--bg-elevated);
  border-block: 1px solid var(--line);
}
.download-section h2 {
  font-size: clamp(38px, 5vw, 64px);
}
.download-section h2 span {
  color: var(--gold);
}
.download-section p:not(.eyebrow) {
  margin: 26px 0;
  max-width: 520px;
}
.site-footer {
  padding: 55px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-top > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  font-size: var(--text-md);
}
.footer-top p {
  max-width: 260px;
  margin-top: 10px;
}
.footer-top strong {
  color: var(--text);
  margin-bottom: 4px;
}
.footer-top > div > a:not(.brand) {
  color: var(--muted);
  padding: 3px 0;
}
.footer-top > div > a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
  font-size: var(--text-xs);
}
.footer-bottom p {
  max-width: 960px;
  margin-bottom: 10px;
}
.workspace {
  padding-block: 55px 80px;
  min-height: 65vh;
}
.page-heading {
  margin-bottom: 34px;
}
.page-heading h1 {
  font-size: clamp(30px, 4vw, 48px);
}
.page-heading p:not(.eyebrow) {
  font-size: var(--text-base);
  max-width: 700px;
  margin-top: 20px;
}
.search-form > label,
.set-search-label,
.language-label {
  display: block;
  font-size: var(--text-md);
  color: var(--muted);
}
.search-field {
  display: flex;
  gap: 10px;
  margin-top: 9px;
}
.search-field input {
  flex: 1;
  min-width: 0;
}
input,
select {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 11px 14px;
  border-radius: var(--r-control);
  min-height: 46px;
  max-width: 100%;
}
input::placeholder {
  color: var(--muted);
}
.result-count {
  margin: 28px 0 20px;
  font-size: var(--text-md);
}
.load-more {
  text-align: center;
  margin: 35px 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.load-more[hidden] {
  display: none;
}
.load-more p:not(:has(button)) {
  animation: breathe 1.6s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .load-more p {
    animation: none;
  }
}
.set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.set-card {
  display: block;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 24px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.set-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-edge);
}
.set-card .set-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.set-logo img {
  max-height: 90px;
  max-width: 85%;
  object-fit: contain;
}
.set-logo.logo-unavailable {
  color: var(--gold);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--raised);
  border-radius: var(--r-card);
  text-align: center;
  padding: 14px;
}
.set-card h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.04em;
}
.set-card p {
  font-size: var(--text-xs);
  margin-top: 14px;
}
.progress-track {
  height: 4px;
  background: var(--raised);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--gold);
}
.standalone-input {
  display: block;
  width: min(100%, 700px);
  margin-top: 10px;
}
.language-label {
  margin-top: 20px;
}
.language-label select {
  margin-left: 12px;
  font-size: var(--text-md);
}
.back-link {
  margin-bottom: 28px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.detail-art {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 35px;
}
.detail-art img {
  width: 100%;
  max-width: 350px;
  margin: auto;
  height: auto;
  border-radius: var(--r-card);
}
.detail-art .art-unavailable {
  max-width: 350px;
  margin: auto;
}
.detail-art p {
  font-size: var(--text-xs);
  text-align: center;
  margin-top: 20px;
}
.detail-info h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-top: 12px;
}
.detail-info .set-name {
  margin-top: 14px;
  font-size: var(--text-base);
}
.detail-price {
  margin: 30px 0;
}
.detail-price > p {
  font-size: var(--text-md);
}
.detail-price strong {
  display: block;
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.4;
}
.detail-info .actions {
  gap: 10px;
  margin: 25px 0;
}
.finish-control {
  margin-top: 25px;
  font-size: var(--text-md);
  color: var(--muted);
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 30px 0;
}
.detail-facts > div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.detail-facts dt {
  font-size: var(--text-xs);
  color: var(--muted);
}
.detail-facts dd {
  font-size: var(--text-md);
  margin: 5px 0 0;
}
.storage-note {
  padding: 17px 20px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-control);
  font-size: var(--text-md);
  color: var(--muted);
  margin-bottom: 25px;
}
.storage-note strong {
  color: var(--text);
}
.segmented {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.segmented button {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: 700;
}
.segmented button:hover {
  color: var(--text);
}
.segmented button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}
.import-label {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.import-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  padding: 0;
  cursor: pointer;
}
.import-label:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.empty-state {
  grid-column: 1/-1;
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-panel);
}
.empty-state h2 {
  font-size: var(--text-3xl);
  margin-bottom: 15px;
}
.empty-state p {
  max-width: 500px;
  margin: auto;
}
.empty-state .button {
  margin-top: 25px;
}
.prose {
  max-width: 800px;
}
.prose h1 {
  font-size: var(--text-5xl);
}
.prose h2 {
  font-size: var(--text-2xl);
  margin: 38px 0 16px;
}
.prose p {
  font-size: var(--text-base);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 550px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 20px;
  border-radius: var(--r-control);
  box-shadow: 0 10px 25px #0006;
  z-index: 80;
  font-size: var(--text-md);
}
.toast.error {
  background: var(--loss);
}
dialog {
  max-width: 440px;
  width: calc(100% - 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  background: var(--panel);
  color: var(--text);
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: var(--text-2xl);
}
dialog p {
  font-size: var(--text-md);
  margin: 18px 0 24px;
}
dialog .actions {
  gap: 10px;
}
.motion-entrance-pending {
  opacity: 0;
}
.feature-image-enter {
  animation: feature-in 0.3s ease-out;
}
@keyframes hero-in {
  from {
    opacity: 0;
    translate: 0 15px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes feature-in {
  from {
    opacity: 0.6;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (min-width: 1400px) {
  .hero h1 {
    font-size: 62px;
  }
}
@media (max-width: 1050px) {
  .nav nav {
    gap: 18px;
    font-size: var(--text-sm);
  }
  .hero {
    min-height: 650px;
    gap: 20px;
  }
  .hero-stage {
    height: 590px;
  }
  .hero-device {
    width: 250px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero .lede {
    font-size: var(--text-lg);
  }
  .hero .actions {
    gap: 14px;
  }
  .hero .actions .button {
    padding: 14px 16px;
  }
  .faq-section {
    gap: 50px;
  }
  .card-grid {
    gap: 18px;
  }
  .card-meta {
    min-height: 58px;
  }
  .detail-layout {
    gap: 35px;
  }
  .section {
    padding-block: 80px;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav {
    min-height: 74px;
    flex-wrap: wrap;
    gap: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 15px 0 22px;
  }
  .nav nav.open {
    display: flex;
  }
  .nav nav > a {
    padding: 12px 0;
    min-height: 44px;
    font-size: var(--text-md);
  }
  .nav nav .nav-app {
    margin-top: 8px;
    padding: 12px 16px;
    align-self: start;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 15px;
    min-height: 0;
    padding-top: 55px;
    padding-bottom: 40px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .eyebrow,
  .hero .actions {
    justify-content: center;
  }
  .hero .lede,
  .hero-description {
    margin-inline: auto;
    max-width: 540px;
  }
  .hero h1 {
    font-size: 58px;
  }
  .hero-stage {
    max-width: 540px;
    width: 100%;
    margin: auto;
    height: 630px;
  }
  .hero-device {
    width: 270px;
  }
  .stage-note {
    left: 0;
    bottom: 0;
  }
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .card-meta {
    min-height: 40px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-section h2 br {
    display: none;
  }
  .detail-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 25px;
  }
  .detail-art {
    padding: 20px;
  }
  .set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 560px) {
  html {
    scroll-padding-top: 80px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .brand {
    font-size: 21px;
  }
  .nav {
    min-height: 70px;
  }
  .hero {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 49px);
    letter-spacing: -0.04em;
  }
  .hero .eyebrow {
    font-size: var(--text-xs);
    margin-bottom: 20px;
  }
  .hero .lede {
    font-size: var(--text-base);
    margin: 23px 0 14px;
  }
  .hero .actions {
    gap: 12px;
    flex-direction: column;
    margin-top: 25px;
  }
  .hero .actions .button {
    width: 100%;
    max-width: 350px;
  }
  .hero-stage {
    height: 550px;
    margin-top: 20px;
  }
  .hero-device {
    width: 230px;
  }
  .showcase-halo {
    inset-inline: 0;
  }
  .stage-note {
    font-size: var(--text-xs);
  }
  .section {
    padding-block: 55px;
  }
  .eyebrow {
    font-size: var(--text-xs);
    margin-bottom: 15px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .featured-grid {
    gap: 26px 18px;
  }
  .featured-caption {
    margin-top: 13px;
    column-gap: 8px;
  }
  .featured-caption h3 {
    font-size: var(--text-md);
  }
  .featured-caption .featured-price {
    font-size: var(--text-lg);
    margin-top: 9px;
  }
  .featured-caption p {
    font-size: var(--text-xs);
    margin-top: 4px;
  }
  .card-tile {
    padding: 10px;
    border-radius: var(--r-card);
  }
  .card-tile h3 {
    font-size: var(--text-md);
    margin-top: 12px;
  }
  .card-meta {
    font-size: var(--text-xs);
    min-height: 58px;
  }
  .card-tile .price {
    font-size: var(--text-lg);
    margin-top: 10px;
  }
  .quote-note {
    font-size: var(--text-xs);
  }
  .tile-actions {
    gap: 6px;
  }
  .section-lede {
    font-size: var(--text-base);
  }
  .faq-list summary {
    font-size: var(--text-base);
    gap: 15px;
  }
  .faq-list details p {
    font-size: var(--text-md);
  }
  .download-section h2 {
    font-size: clamp(34px, 9vw, 48px);
  }
  .download-section .actions {
    gap: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-top > div:first-child {
    grid-column: 1/-1;
  }
  .site-footer {
    padding-top: 40px;
  }
  .footer-bottom {
    font-size: var(--text-xs);
  }
  .workspace {
    padding-block: 35px 55px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: var(--text-md);
    margin-top: 15px;
  }
  .search-field {
    gap: 8px;
  }
  .search-field input {
    font-size: var(--text-base);
    padding: 11px;
  }
  .search-field .button {
    padding: 12px;
    font-size: var(--text-sm);
  }
  .set-grid {
    grid-template-columns: 1fr;
  }
  .set-card {
    padding: 22px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-art img,
  .detail-art .art-unavailable {
    max-width: 245px;
  }
  .detail-art {
    padding: 24px;
  }
  .detail-info h1 {
    font-size: var(--text-3xl);
  }
  .detail-price strong {
    font-size: var(--text-5xl);
  }
  .detail-info .actions .button {
    flex: 1;
  }
  .storage-note {
    font-size: var(--text-sm);
  }
  .prose h1 {
    font-size: var(--text-4xl);
  }
  .prose h2 {
    font-size: var(--text-2xl);
  }
  .empty-state {
    padding: 40px 20px;
  }
  .empty-state h2 {
    font-size: var(--text-2xl);
  }
  .empty-state p {
    font-size: var(--text-md);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Still faded in (page-motion.js), but never moved. */
  .motion-entrance-pending {
    transform: none;
  }
  .device-motion {
    transform: none;
  }
  .showcase-light,
  .phone::after {
    display: none;
  }
}

body .motion-art {
  transform: none;
  transition: box-shadow 200ms ease !important;
}
body .motion-art-hover {
  box-shadow: 0 20px 34px #0006;
}
body .phone .motion-art-hover {
  box-shadow: 0 10px 18px #0006;
}
.phone::after {
  background:
    radial-gradient(ellipse 65% 34% at var(--phone-light-x, 50%) var(--phone-light-y, 50%),
      var(--line-strong), var(--line-faint) 45%, transparent 100%),
    radial-gradient(ellipse 28% 58% at var(--phone-light-x, 50%) var(--phone-light-y, 50%),
      var(--gold-faint), transparent 100%);
}

#backup-dialog {
  max-width: 650px;
}
#backup-dialog .actions {
  margin-top: 24px;
}
#backup-dialog label {
  display: block;
  color: var(--muted);
  font-size: var(--text-md);
  margin: 24px 0 8px;
}
#backup-text {
  width: 100%;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 14px;
  font:
    13px/1.6 ui-monospace,
    monospace;
  min-height: 170px;
  margin-bottom: 20px;
}
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Open artwork galleries: content follows its card without a surrounding panel. */
[data-page="explore"] .card-grid {
  gap: 36px 24px;
}
[data-page="explore"] .card-tile {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
[data-page="explore"] .card-tile:hover {
  transform: none;
  box-shadow: none;
}
[data-page="explore"] .card-link {
  flex: none;
}
[data-page="explore"] .card-art {
  background: transparent;
  border-radius: var(--r-chip);
  box-shadow: 0 12px 25px #0004;
}
[data-page="explore"] .card-tile h3 {
  margin-top: 12px;
  line-height: 1.3;
}
[data-page="explore"] .card-meta {
  min-height: 0;
  margin-top: 4px;
  line-height: 1.5;
}
[data-page="explore"] .card-tile .price {
  margin-top: 6px;
  line-height: 1.3;
}
[data-page="explore"] .card-tile .price.unavailable {
  font-size: var(--text-md);
  color: var(--muted);
}
.featured-caption .featured-trend {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
  font-size: var(--text-xs);
  line-height: 1.45;
}
.featured-trend.up {
  color: var(--sage);
}
.featured-trend.down {
  color: var(--loss);
}
.featured-trend.flat,
.featured-trend.unavailable {
  color: var(--muted);
}
.featured-trend > svg {
  width: 54px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
}
.featured-trend polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.featured-trend span span {
  opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-art,
  .art-unavailable,
  .portfolio-recent-cards img{
    transition:
      transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.32s;
  }
  .card-art:hover,
  .art-unavailable:hover,
  .featured-link:hover .card-art,
  .card-link:hover .art-unavailable,
  .card-link:focus-visible .card-art,
  .card-link:focus-visible .art-unavailable {
    transform: translateY(-7px) scale(1.025);
    box-shadow: 0 22px 34px #0007;
  }
  .portfolio-recent-cards img:hover{
    transform: translateY(-5px) scale(1.035);
    box-shadow: 0 12px 20px #0008;
  }
}
@media (max-width: 560px) {
  .featured-caption {
    row-gap: 3px;
  }
  .featured-caption p,
  .featured-caption .featured-price {
    margin-top: 0;
  }
  .featured-caption .featured-trend {
    flex-wrap: wrap;
    gap: 2px 5px;
    font-size: var(--text-xs);
  }
  .featured-trend svg {
    width: 38px;
    height: 20px;
  }
  [data-page="explore"] .card-grid {
    gap: 28px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-art,
  .featured-link:hover .card-art {
    transform: none;
  }
}

/* Account page: sign in, create an account, reset a password. */
.text-button {
  justify-self: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--gold);
  background: none;
  border: 0;
  font-weight: 700;
}
.account-message {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--r-control);
  background: var(--raised);
}
.account-message.error {
  color: var(--loss);
}

/* Card page market: price history chart, Near Mint statistics, graded prices. */
.card-market {
  display: grid;
  gap: 20px;
  margin: 40px 0;
}
.market-section {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.market-section h2 {
  margin: 0;
  font-size: var(--text-2xl);
}
.market-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.periods button {
  min-height: 36px;
  padding: 6px 12px;
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}
.chart-head strong {
  font-size: var(--text-3xl);
  font-weight: 800;
}
.chart-change {
  font-weight: 800;
}
.chart-change.up,
.change-chip.up strong {
  color: var(--sage);
}
.chart-change.down,
.change-chip.down strong {
  color: var(--loss);
}
.chart-frame {
  position: relative;
}
.price-chart {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: pan-y;
  cursor: crosshair;
}
.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.price-chart.up .chart-line {
  stroke: var(--sage);
}
.price-chart.down .chart-line {
  stroke: var(--loss);
}
.chart-area {
  fill: var(--gold);
  opacity: 0.08;
}
.chart-cursor {
  stroke: var(--muted);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chart-tip {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  background: var(--raised);
  font-size: var(--text-sm);
  font-weight: 700;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.change-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.change-chip {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px;
  border-radius: var(--r-control);
  background: var(--raised);
}
.change-chip span {
  color: var(--muted);
  font-size: var(--text-xs);
}
.range-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--raised);
}
.range-track span {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.graded-rows {
  display: grid;
}
.graded-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.graded-row:first-child {
  border-top: 0;
}
.graded-row > div {
  display: grid;
  justify-items: end;
  text-align: right;
}
.graded-price {
  font-weight: 800;
}

/* Browse: quick searches, the 30-day move on each tile, and the list view. */
.try-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-md);
}
.try-row button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
}
.tile-change {
  margin-left: 8px;
  font-size: var(--text-sm);
  font-weight: 800;
}
.tile-change small {
  color: var(--muted);
  font-weight: 700;
}
.tile-change.up {
  color: var(--sage);
}
.tile-change.down {
  color: var(--loss);
}
.tile-change.flat {
  color: var(--muted);
}
.card-grid.as-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 0 40px;
}
.as-list .card-tile {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.as-list .card-link {
  display: grid;
  flex: 1;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  min-width: 0;
}
.as-list .card-link > .card-art,
.as-list .card-link > .art-unavailable {
  grid-row: 1 / span 2;
  width: 56px;
  min-height: 0;
  padding: 0;
  aspect-ratio: 600 / 825;
  border-radius: 4px;
  font-size: 0;
}
.as-list .art-unavailable > * {
  display: none;
}
[data-page="explore"] .as-list .card-link h3,
[data-page="explore"] .as-list .card-link .card-meta {
  grid-column: 2;
  margin: 0;
  align-self: end;
}
[data-page="explore"] .as-list .card-link .card-meta {
  align-self: start;
}
.as-list .tile-change {
  display: block;
  margin: 2px 0 0;
}
@media (max-width: 560px) {
  .as-list .card-link {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .as-list .card-link > .card-art,
  .as-list .card-link > .art-unavailable {
    width: 44px;
  }
  .as-list .tile-actions {
    display: none;
  }
}

/* Shared pieces: icons, hidden labels, loading shapes. */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skeleton {
  border-radius: var(--r-card);
  background: linear-gradient(90deg, var(--panel) 25%, var(--raised) 50%, var(--panel) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}
.back-link .icon {
  margin-right: -4px;
}
.button .icon {
  font-size: var(--text-lg);
}
:is(.price, .detail-price strong, .chart-head strong, .price-table td strong, .condition-strip dd, .graded-price) {
  font-variant-numeric: tabular-nums;
}

/* Browse: one search field, one row of chips, quiet tiles. */
.search-field {
  position: relative;
  margin-top: 0;
}
.search-field > .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  translate: 0 -50%;
  font-size: var(--text-xl);
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  min-height: 56px;
  padding-left: 52px;
  border-radius: var(--r-card);
  font-size: var(--text-base);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.chip-row {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar {
  display: none;
}
@media (max-width: 700px) {
  /* The chips scroll; a soft edge says there are more. */
  .chip-row,
  .try-row {
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 24px;
  }
}
.chip-select {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
}
.chip-select select,
.chip-clear {
  appearance: none;
  min-height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 700;
  cursor: pointer;
  max-width: 240px;
  text-overflow: ellipsis;
}
.chip-select select:hover,
.chip-clear:hover {
  border-color: var(--gold-line);
}
.chip-select > .icon {
  position: absolute;
  right: 14px;
  font-size: var(--text-md);
  color: var(--muted);
  pointer-events: none;
}
.chip-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 16px 0 12px;
  background: transparent;
  color: var(--muted);
}
.chip-clear[hidden] {
  display: none;
}
.view-toggle {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
}
.view-toggle button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-lg);
}
.view-toggle button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--gold);
}
.try-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 12px;
  font-size: var(--text-sm);
}
.try-row::-webkit-scrollbar {
  display: none;
}
.try-row > * {
  flex: none;
}
.try-row button {
  min-height: 32px;
  font-size: var(--text-sm);
  background: transparent;
}
.try-row button:hover {
  border-color: var(--gold-line);
}
.result-count {
  margin: 28px 0 18px;
  font-size: var(--text-sm);
  color: var(--muted);
}
[data-page="explore"] .card-art {
  background: var(--panel);
}
[data-page="explore"] .card-tile h3 {
  font-size: var(--text-base);
}
.tile-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.tile-price {
  min-width: 0;
}
[data-page="explore"] .card-tile .price {
  margin-top: 0;
  font-size: var(--text-lg);
}
[data-page="explore"] .tile-actions {
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text);
  font-size: var(--text-base);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    scale 0.15s;
}
.icon-button:hover {
  border-color: var(--gold-line);
  color: var(--gold);
}
.icon-button:active {
  scale: 0.94;
}
.icon-button.is-on {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold);
}
@media (max-width: 560px) {
  .tile-foot {
    flex-direction: column;
    gap: 10px;
  }
}
.as-list .tile-foot {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 0;
  flex: none;
}
.as-list .tile-price {
  text-align: right;
}
@media (pointer: coarse) {
  .icon-button,
  .view-toggle button,
  .chip-select select,
  .chip-clear {
    min-height: 44px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .periods button {
    min-height: 44px;
  }
}

/* The card page: shown at once from the catalog, filled in from the set. */
.art-skeleton {
  width: 100%;
  max-width: 350px;
  margin: auto;
  aspect-ratio: 600 / 825;
}
.line-skeleton {
  height: 22px;
  width: 40%;
  margin-top: 16px;
}
.line-skeleton.wide {
  height: 48px;
  width: 70%;
  margin-top: 0;
}
.price-skeleton {
  height: 96px;
  width: 50%;
  margin-top: 30px;
}
.detail-info h1 {
  margin-top: 0;
}
.detail-info .set-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  color: var(--muted);
}
.detail-info .set-name .text-link {
  padding-block: 0;
}
.detail-info .set-name > span::before {
  content: "·";
  margin: 0 8px;
  color: var(--muted);
}
.finish-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  color: var(--text);
}
.finish-control > span:first-child {
  color: var(--muted);
}
.detail-info .actions .button {
  gap: 8px;
}
.detail-info .actions .button.is-on {
  color: var(--gold);
  border-color: var(--gold-line);
}
.chart-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px var(--bg);
  translate: -50% -50%;
  pointer-events: none;
}
.price-chart.up .chart-area {
  fill: var(--sage);
}
.price-chart.down .chart-area {
  fill: var(--loss);
}
.prices {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.prices h2,
.market-section h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}
.section-note {
  margin-top: -8px;
  font-size: var(--text-md);
}
.condition-strip {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--panel);
}
.strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  color: var(--text);
}
.strip-head span {
  font-size: var(--text-sm);
  color: var(--muted);
}
.condition-strip dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.condition-strip dl > div {
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--raised);
}
.condition-strip dl > div:first-child {
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.condition-strip dt {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
}
.condition-strip abbr {
  text-decoration: none;
}
.condition-strip dd {
  margin: 2px 0 0;
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--panel);
  overflow: hidden;
}
.table-head {
  margin-bottom: -6px;
  font-size: var(--text-sm);
}
.price-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.price-table th,
.price-table td {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.price-table tbody tr:first-child > * {
  border-top: 0;
}
.price-table td {
  text-align: right;
  white-space: nowrap;
}
.price-table strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
}
.price-table span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.chart-axis span:first-child,
.chart-axis span:last-child {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .chart-axis {
    flex-wrap: wrap;
  }
  .chart-axis span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .detail-info .actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}
@media (max-width: 700px) {
  .detail-art {
    padding: 0;
    border: 0;
    background: none;
  }
  .detail-art img,
  .detail-art .art-unavailable,
  .art-skeleton {
    max-width: 230px;
  }
  .detail-layout {
    gap: 22px;
  }
  .detail-price {
    margin: 18px 0;
  }
  .page-heading p:not(.eyebrow) {
    margin-top: 8px;
  }
  .condition-strip,
  .price-table th,
  .price-table td {
    padding-inline: 16px;
  }
}

/* Home: the hero's live numbers, the price-sources list, the closing note. */
.hero .lede {
  margin-top: 24px;
}
.live-stats {
  margin-top: 22px;
  font-size: var(--text-md);
  color: var(--muted);
}
.section-heading {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 36px;
}
.section-heading p {
  font-size: var(--text-base);
}
#discover > .text-link {
  margin-top: 28px;
}
.text-link .icon {
  transition: translate 0.2s;
}
.text-link:hover .icon {
  translate: 3px 0;
}
.feature-caption {
  justify-content: center;
}
.source-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
  border-block: 1px solid var(--line);
}
.source-list {
  margin: 0;
}
.source-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.source-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.source-list dt {
  font-weight: 800;
  color: var(--text);
}
.source-list dd {
  margin: 0;
  color: var(--muted);
}
.faq-section > h2 {
  align-self: start;
}
.app-coming {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--muted);
}
.app-coming img {
  border-radius: 6px;
}
@media (max-width: 800px) {
  .source-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 560px) {
  .source-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Sets: a set with no logo shows its most valuable card instead. */
.set-cover img {
  height: 90px;
  width: auto;
  max-width: none;
  border-radius: 5px;
  box-shadow: 0 8px 20px #0006;
}
.set-owned {
  margin-top: 10px;
  font-size: var(--text-sm);
}

/* As the app: sources that disagree, and stale Near Mint figures folded away. */
.spread-note {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  border-radius: var(--r-control);
}
.spread-note strong {
  color: var(--text);
  font-size: var(--text-md);
}
.spread-note strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--warning);
  vertical-align: 1px;
}
.spread-note span {
  font-size: var(--text-sm);
}
.older-figures summary {
  cursor: pointer;
  color: var(--text);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.older-figures[open] summary {
  margin-bottom: 12px;
}

/* Browse: filters down the left, the grid beside them. */
/* Browse runs edge to edge: the grid takes whatever the filters leave. */
[data-page="explore"] .site-header .wrap,
.wrap.browse {
  width: calc(100% - clamp(32px, 4vw, 96px));
  max-width: 2400px;
}
[data-page="explore"] .nav {
  min-height: 64px;
}
.wrap.browse.workspace {
  padding-block: 24px 64px;
}
.browse-top {
  display: flex;
  align-items: center;
  gap: 28px;
}
.browse-top h1 {
  flex: none;
  font-size: var(--text-3xl);
}
.browse-top .search-form {
  flex: 1;
  min-width: 0;
}
.browse-top .search-field {
  margin-top: 0;
}
.browse .try-row {
  margin-top: 12px;
}
.browse-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}
.filters {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 22px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  scrollbar-width: thin;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-head h2 {
  font-size: var(--text-lg);
}
.filters-head .text-button {
  min-height: 32px;
  padding: 0;
}
.filter-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.filter-group legend,
.filter-group .legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--text);
}
.filter-group .legend {
  display: block;
  margin-bottom: 0;
}
.price-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.price-to {
  font-size: var(--text-sm);
  color: var(--muted);
}
.money-input {
  position: relative;
  display: block;
}
.money-input > span {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
}
.money-input input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px 0 26px;
  appearance: textfield;
}
.money-input input::-webkit-outer-spin-button,
.money-input input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.quick-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quick-prices button {
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  font-size: var(--text-sm);
  font-weight: 700;
}
.quick-prices button:hover {
  color: var(--text);
  border-color: var(--gold-line);
}
.quick-prices button[aria-pressed="true"] {
  color: var(--gold);
  background: var(--gold-faint);
  border-color: var(--gold-line);
}
.pills {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
}
.pill {
  display: block;
  cursor: pointer;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.pill:hover span {
  color: var(--text);
  border-color: var(--gold-line);
}
.pill input:checked + span {
  color: var(--gold);
  background: var(--gold-faint);
  border-color: var(--gold-line);
}
.pill input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--muted);
  font-size: var(--text-md);
  cursor: pointer;
}
.choice:hover,
.choice:has(input:checked) {
  color: var(--text);
}
.choice input {
  width: 18px;
  min-height: 0;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--gold);
}
.chip-select.wide,
.chip-select.wide select {
  display: flex;
  width: 100%;
  max-width: none;
}
.chip-select.wide select {
  background: var(--bg);
}
.browse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.browse-bar .result-count {
  margin: 0;
}
.browse-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.chip-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  font-size: var(--text-md);
  font-weight: 700;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.active-filters[hidden] {
  display: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px 0 14px;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 700;
}
.filter-chip:hover {
  border-color: var(--gold-line);
}
.filter-chip .icon {
  color: var(--muted);
}
.browse-main .card-grid {
  margin-top: 18px;
}
[data-page="explore"] .card-grid:not(.as-list) {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 28px 20px;
}
/* The dollar move sits under the price. */
[data-page="explore"] .tile-change {
  display: block;
  margin: 3px 0 0;
}
.as-list .tile-change {
  margin: 2px 0 0;
}
.filters-done {
  display: none;
}
@media (max-width: 980px) {
  .browse-top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .filters-done {
    display: flex;
    justify-content: center;
  }
  .browse-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .filters {
    display: none;
    position: static;
    max-height: none;
  }
  .filters.open {
    display: grid;
  }
  .chip-button {
    display: inline-flex;
  }
  .browse-bar {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .browse-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .browse-controls {
    width: 100%;
  }
  .browse-controls .chip-select {
    flex: 1 1 0;
    min-width: 0;
  }
  .browse-controls .chip-select select {
    width: 100%;
    max-width: none;
  }
  [data-page="explore"] .card-grid:not(.as-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Browse tiles, in the order the big card sites use: picture, name, set (a
 * link to it), the card's type and number, the price, then its 30-day move
 * with the Add button beside the price. One line each; nothing wraps. */
[data-page="explore"] .card-tile {
  padding: 8px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  transition:
    background-color 0.15s,
    transform 0.15s;
}
[data-page="explore"] .card-tile:hover {
  background: var(--raised);
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}
.tile-media {
  display: block;
}
[data-page="explore"] .tile-media .card-art {
  border-radius: 8px;
  box-shadow: none;
}
.tile-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 4px 4px;
}
[data-page="explore"] .tile-text h3 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-page="explore"] .tile-text h3 a:hover {
  color: var(--gold);
}
.set-link,
.type-line {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.set-link {
  text-decoration: underline;
  text-decoration-color: #ffffff40;
  text-underline-offset: 3px;
}
.set-link:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}
.type-line:empty {
  display: none;
}
[data-page="explore"] .tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.tile-price {
  display: grid;
  min-width: 0;
}
[data-page="explore"] .tile-price .price {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.3;
  white-space: nowrap;
}
[data-page="explore"] .tile-price .tile-change {
  display: block;
  margin: 1px 0 0;
  font-size: var(--text-sm);
  white-space: nowrap;
}
[data-page="explore"] .tile-foot .tile-actions {
  margin: 0;
}
/* The list view: a small picture, the same lines, the price at the right. */
[data-page="explore"] .as-list .card-tile {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
[data-page="explore"] .as-list .card-tile:hover {
  background: var(--panel);
  transform: none;
}
[data-page="explore"] .as-list .tile-media {
  flex: none;
  width: 56px;
}
[data-page="explore"] .as-list .tile-media .card-art,
[data-page="explore"] .as-list .tile-media .art-unavailable {
  width: 56px;
  min-height: 0;
  padding: 0;
  font-size: 0;
  border-radius: 4px;
}
[data-page="explore"] .as-list .tile-text {
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding: 0;
}
[data-page="explore"] .as-list .tile-text > h3,
[data-page="explore"] .as-list .tile-text > .set-link,
[data-page="explore"] .as-list .tile-text > .type-line {
  grid-column: 1;
}
[data-page="explore"] .as-list .tile-foot {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
[data-page="explore"] .as-list .tile-price {
  text-align: right;
}
/* At most six cards across, however wide the screen. */
[data-page="explore"] .card-grid:not(.as-list) {
  grid-template-columns: repeat(auto-fill, minmax(max(176px, calc((100% - 100px) / 6)), 1fr));
}
@media (max-width: 560px) {
  [data-page="explore"] .card-grid:not(.as-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-page="explore"] .as-list .tile-actions {
    display: none;
  }
}

/* Sign in and create an account: a full-screen stage, a fan of cards behind a
 * compact panel. The site's header and footer step aside. */
[data-page="account"] .site-header,
[data-page="account"] .site-footer,
[data-page="account"] .skip-link {
  display: none;
}
.auth {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px 20px 56px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(1100px 700px at 50% 42%, #1d1e23 0%, var(--bg) 72%);
}
.auth-top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 96px);
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: 700;
}
.auth-back:hover {
  color: var(--text);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.auth-brand .word > span {
  color: var(--gold);
}

/* The fan of cards, tilted and dimmed so the panel stays the brightest thing. */
.auth-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 430px at 50% 50%, #151619f2 0%, #151619a0 55%, transparent 100%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, #151619d9 100%);
}
.art {
  position: absolute;
  width: var(--w, clamp(130px, 14vw, 250px));
  height: auto;
  aspect-ratio: 600 / 825;
  border-radius: 10px;
  filter: brightness(var(--b, 0.72)) saturate(1.05);
  box-shadow: 0 24px 60px #000a;
  transform: rotate(var(--r, 0deg));
  animation: drift 11s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes drift {
  from {
    transform: rotate(var(--r, 0deg)) translateY(-7px);
  }
  to {
    transform: rotate(var(--r, 0deg)) translateY(9px);
  }
}
.art.a1 { left: 6%;  top: 13%; --r: -12deg; --b: 1; --w: clamp(150px, 16vw, 280px); }
.art.a2 { left: 18%; top: 50%; --r: 8deg;   --b: 0.78; --d: -3s; }
.art.a3 { left: 1%;  top: 58%; --r: -7deg;  --b: 0.66; --w: clamp(110px, 11vw, 200px); --d: -6s; }
.art.a4 { left: 19%; top: 3%;  --r: 13deg;  --b: 0.6; --w: clamp(110px, 11vw, 200px); --d: -2s; }
.art.a5 { right: 6%; top: 11%; --r: 10deg;  --b: 1; --w: clamp(150px, 16vw, 280px); --d: -4s; }
.art.a6 { right: 18%; top: 49%; --r: -9deg; --b: 0.78; --d: -7s; }
.art.a7 { right: 1%; top: 57%; --r: 7deg;   --b: 0.66; --w: clamp(110px, 11vw, 200px); --d: -1s; }
.art.a8 { right: 19%; top: 2%; --r: -14deg; --b: 0.6; --w: clamp(110px, 11vw, 200px); --d: -5s; }
.art.a9 { left: 36%; top: -6%; --r: 4deg;   --b: 0.42; --d: -8s; }
.art.a10 { right: 36%; top: -5%; --r: -5deg; --b: 0.42; --d: -9s; }

.auth-wrap {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
}
.auth-card {
  display: grid;
  gap: 0;
  justify-items: center;
  padding: 36px 36px 28px;
  text-align: center;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 40px 100px #000b;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.auth-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}
.auth-eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-card h1 {
  font-size: var(--text-3xl);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.auth-sub {
  margin: 12px 0 26px;
  max-width: 340px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.6;
}
.auth-card .account-message {
  width: 100%;
  margin: -6px 0 18px;
  text-align: left;
  font-size: var(--text-md);
}
.auth-view {
  display: grid;
  gap: 12px;
  width: 100%;
}
.auth-view[hidden] {
  display: none;
}
.auth-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-action);
  font-size: var(--text-base);
  font-weight: 700;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.auth-method:hover {
  background: var(--raised);
  border-color: var(--gold-line);
}
.auth-method:active {
  transform: scale(0.99);
}
.auth-method .icon {
  width: 21px;
  height: 21px;
}
/* Apple's own look: white, for the dark page. */
.auth-method.apple {
  color: #000;
  background: #fff;
  border-color: #fff;
}
.auth-method.apple:hover {
  background: #ececec;
  border-color: #ececec;
}
.auth-form {
  text-align: left;
}
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}
.auth-form .optional {
  font-weight: 400;
}
.auth-form .micro {
  margin: -4px 0 0;
  text-align: left;
}
.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  font-size: var(--text-base);
  font-weight: 400;
}
.auth-form input::placeholder {
  color: #ffffff59;
}
.auth-form input:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold-edge);
  outline-offset: 0;
}
/* The browser's autofill paints its own blue; keep our colours. */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 99999s ease-out;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 68px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-chip);
  font-size: var(--text-sm);
  font-weight: 700;
}
.pw-toggle:hover {
  color: var(--text);
}
.auth-form .button {
  width: 100%;
  margin-top: 4px;
}
.auth-form .text-button {
  justify-self: center;
}
.auth-form .text-button.quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
.auth-view > .button {
  width: 100%;
}
#view-signed-in > .micro {
  margin: 4px 0 0;
  text-align: center;
}
.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--text-md);
}
.auth-switch button {
  padding: 0;
  color: var(--text);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch button:hover {
  color: var(--gold);
}
@media (max-width: 760px) {
  .auth {
    padding-top: 88px;
  }
  .auth-card {
    padding: 28px 22px 24px;
  }
  /* A phone shows the two front cards at the corners, faint. */
  .art:not(.a1):not(.a5) {
    display: none;
  }
  .art.a1 {
    left: -14%;
    top: 7%;
    --w: 150px;
    --b: 0.5;
  }
  .art.a5 {
    right: -14%;
    top: 62%;
    --w: 150px;
    --b: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art,
  .auth-card {
    animation: none;
  }
}

/* Dropdown menus (assets/dropdown.js): our own, in place of the system's list.
 * The real <select> stays in the page, hidden, and keeps the value. */
select[data-dd] {
  display: none !important;
}
.dd {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
}
.dd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--panel);
  color: var(--text);
  font-size: var(--text-md);
  text-align: left;
}
.dd-trigger:hover,
.dd-trigger[aria-expanded="true"] {
  border-color: var(--gold-line);
}
.dd-trigger > .icon {
  flex: none;
  font-size: var(--text-md);
  color: var(--muted);
  transition: transform 0.15s ease;
}
.dd-trigger[aria-expanded="true"] > .icon {
  transform: rotate(180deg);
}
.dd-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-select .dd {
  max-width: 240px;
}
.chip-select .dd-trigger {
  min-height: 40px;
  gap: 6px;
  padding: 0 10px 0 12px;
  border-radius: var(--r-chip);
  background: transparent;
  font-weight: 700;
}
.chip-select.wide .dd {
  display: flex;
  width: 100%;
  max-width: none;
}
.chip-select.wide .dd-trigger {
  background: var(--bg);
}
.language-label .dd {
  margin-left: 12px;
}
.browse-controls .chip-select .dd {
  width: 100%;
  max-width: none;
}
.dd-panel {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--panel);
  box-shadow: 0 18px 40px #0009;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.dd-panel.up {
  transform: translateY(4px);
}
.dd-panel.on {
  opacity: 1;
  transform: none;
}
.dd-search {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--muted);
}
.dd-search:focus-within {
  border-color: var(--gold-line);
}
.dd-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  outline: none;
}
.dd-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  outline: none;
}
.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--text-md);
  cursor: pointer;
}
.dd-item[hidden] {
  display: none;
}
.dd-item.active {
  background: var(--raised);
}
.dd-main {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.dd-name,
.dd-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-sub,
.dd-end {
  color: var(--muted);
  font-size: var(--text-xs);
}
.dd-end {
  flex: none;
  font-weight: 700;
}
.dd-item > .icon {
  flex: none;
  visibility: hidden;
  font-size: var(--text-md);
}
.dd-item[aria-selected="true"] {
  color: var(--gold);
}
.dd-item[aria-selected="true"] > .icon {
  visibility: visible;
}
.dd-empty {
  padding: 14px 12px;
  font-size: var(--text-md);
}
@media (pointer: coarse) {
  .dd-trigger,
  .chip-select .dd-trigger {
    min-height: 44px;
  }
  .dd-item {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dd-panel,
  .dd-trigger > .icon {
    transition: none;
    transform: none;
  }
}

/* Cards that lean (assets/card-tilt.js): on Browse and on a card's page the
 * picture rises on hover and leans so the spot under the mouse is pushed away,
 * with a shadow that grows and slides the other way. Browse leans a little, the
 * card page a lot. Mouse only; touch and "reduce motion" keep the plain card. */
.tilt-stage {
  max-width: 350px;
  margin: auto;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tilt] .card-art,
  [data-tilt] .art-unavailable {
    transition:
      transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.22s;
  }
  [data-page="explore"] [data-tilt]:hover .card-art,
  [data-page="explore"] [data-tilt]:focus-visible .card-art,
  [data-page="explore"] [data-tilt]:hover .art-unavailable,
  [data-page="explore"] [data-tilt]:focus-visible .art-unavailable,
  [data-page="collection"] [data-tilt]:hover .card-art,
  [data-page="collection"] [data-tilt]:focus-visible .card-art,
  [data-page="collection"] [data-tilt]:hover .art-unavailable,
  [data-page="collection"] [data-tilt]:focus-visible .art-unavailable {
    transform: perspective(700px) translateY(-8px) scale(1.03) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
    box-shadow: calc(var(--ry, 0) * -1.6px) 20px 28px #000a;
  }
  .tilt-stage:hover .card-art,
  .tilt-stage:focus-within .card-art,
  .tilt-stage:hover .art-unavailable,
  .tilt-stage:focus-within .art-unavailable {
    transform: perspective(900px) translateY(-10px) scale(1.045) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
    box-shadow:
      calc(var(--ry, 0) * -2.4px) calc(26px + var(--rx, 0) * 1.2px) 44px #000c,
      0 4px 14px #0007;
  }
}

/* The app tour on the home page (assets/app-tour.js, tour-screens.js): a phone
 * that stays in view while the steps scroll past it, swapping to each step's
 * screen. On small screens every step carries its own phone instead. */
.tour {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}
.tour-body {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}
.tour-intro {
  grid-column: 2;
  grid-row: 1;
  max-width: 520px;
}
.tour-rail {
  grid-column: 1;
  grid-row: 2;
}
.tour-steps {
  grid-column: 2;
  grid-row: 2;
}
.tour-stage {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.tour-rail,
.tour-steps,
.tour-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tour-rail {
  position: sticky;
  top: calc(50vh - 90px);
  align-self: start;
  display: grid;
  gap: 4px;
  margin-top: 28vh;
}
.tour-rail::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line-strong);
}
.tour-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
}
.tour-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--line-strong);
  transition:
    transform 0.3s,
    background-color 0.3s,
    border-color 0.3s;
}
.tour-dot:hover::before {
  border-color: var(--gold-line);
}
.tour-dot.is-on::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.5);
}
.tour-dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tour-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  padding-block: 6vh;
  max-width: 440px;
}
.tour-step:first-child {
  min-height: 62vh;
}
.tour-step h3 {
  font-size: clamp(28px, 3vw, var(--text-4xl));
  letter-spacing: -0.04em;
}
.tour-step > p {
  margin-top: 16px;
  font-size: var(--text-lg);
  line-height: 1.6;
}
.tour-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.tour-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--text-md);
}
.tour-points .icon {
  flex: none;
  color: var(--gold);
}
.tour-inline {
  display: none;
}
.tour-stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding-top: 64px;
  isolation: isolate;
}
.tour-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 100%);
  aspect-ratio: 1;
  translate: -50% -42%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold-soft), transparent);
  z-index: -1;
}
.tour-phone {
  width: clamp(210px, 33vh, 290px);
  transform: perspective(1400px) rotateY(calc((0.5 - var(--tour-p, 0.5)) * 18deg)) rotateX(2deg);
  transition: transform 0.2s linear;
}
.tour-screen {
  position: relative;
  aspect-ratio: 660/1434;
}
.tour-screen .tour-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tour-screen .tour-shot.is-on {
  opacity: 1;
  transform: none;
}
.tour-stage .feature-caption {
  margin-top: 22px;
}
/* With scripts, the step being read is bright and the rest recede. */
.tour-js .tour-step {
  opacity: 0.35;
  transition: opacity 0.4s;
}
.tour-js .tour-step.is-on {
  opacity: 1;
}

/* The screens themselves. 1cqw is a hundredth of a screen's width. */
.ts {
  container-type: inline-size;
}
.ts-in {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 3.7cqw;
  line-height: 1.3;
  letter-spacing: 0;
}
.ts-in :is(h4, p, dl, dd, dt) {
  margin: 0;
}
.ts-in :is(strong, b) {
  font-weight: 700;
}
.ts-in small {
  display: block;
  color: var(--muted);
  font-size: 3cqw;
}
.ts-in img {
  display: block;
  width: 100%;
  height: auto;
}
.ts-in svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ts-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.4cqw 8cqw 0 8cqw;
  height: 11cqw;
  font-size: 3.6cqw;
}
.ts-status svg {
  width: 9cqw;
  height: 3.6cqw;
}
.ts-status span {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
}
.ts-status i {
  width: 6cqw;
  height: 3cqw;
  border-radius: 1cqw;
  background: var(--sage);
}
.ts-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1cqw 5cqw 0;
  height: 11cqw;
}
.ts-brand,
.ts-title2 {
  font-size: 6.4cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ts-title2 {
  font-size: 8cqw;
}
.ts-brand span {
  color: var(--gold);
}
.ts-avatar {
  width: 8cqw;
  height: 8cqw;
}
.ts-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2cqw 5cqw 0;
  font-weight: 700;
}
.ts-head i {
  display: inline-grid;
  place-items: center;
  width: 3.6cqw;
  height: 3.6cqw;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 2.4cqw;
  font-style: normal;
  color: var(--muted);
}
.ts-seg {
  display: flex;
  gap: 5cqw;
}
.ts-seg b {
  padding-bottom: 1.4cqw;
  border-bottom: 0.5cqw solid var(--gold);
  color: var(--gold);
}
.ts-seg .mute {
  border-color: transparent;
  color: var(--muted);
}
.ts-amount {
  padding: 3.4cqw 5cqw 0;
  font-size: 11cqw;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ts-amount.sm {
  font-size: 9.5cqw;
  padding-top: 1cqw;
}
.ts-amount span {
  font-size: 7cqw;
  opacity: 0.8;
}
.ts-gain {
  padding: 1.4cqw 5cqw 0;
  font-weight: 700;
  color: var(--sage);
  font-size: 3.5cqw;
}
.ts-gain > span:not(.ts-up) {
  color: var(--muted);
  margin-left: 1cqw;
  font-weight: 600;
}
.ts-up {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  color: var(--sage);
  font-weight: 700;
}
.ts-up svg {
  width: 3.4cqw;
  height: 3.4cqw;
  stroke-width: 2.4;
}
.ts-chart {
  display: block;
  width: 100%;
  height: 40cqw;
  margin-top: 2cqw;
  overflow: visible;
  stroke: none;
}
.ts-chart .ts-line {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ts-chart .ts-area {
  stroke: none;
  opacity: 0;
}
.is-on .ts-chart .ts-line {
  animation: ts-draw 1.6s 0.25s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}
.is-on .ts-chart .ts-area {
  animation: ts-fade 1s 1s ease forwards;
}
@keyframes ts-draw {
  to {
    stroke-dashoffset: var(--end, 0);
  }
}
@keyframes ts-fade {
  to {
    opacity: 1;
  }
}
.ts-dates {
  display: flex;
  justify-content: space-between;
  padding: 1cqw 5cqw 0;
  color: var(--muted);
  font-size: 3cqw;
}
.ts-periods {
  display: flex;
  justify-content: space-between;
  margin: 3cqw 5cqw 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 3.3cqw;
  font-weight: 700;
}
.ts-periods span {
  padding: 1.4cqw 3cqw 2cqw;
  border-bottom: 0.5cqw solid transparent;
}
.ts-periods .on {
  color: var(--text);
  border-color: var(--gold);
}
.ts-value .ts-chart {
  height: 24cqw;
}
.ts-recent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3cqw;
  padding: 1cqw 8cqw 0;
}
.ts-recent strong {
  display: block;
  margin-top: 1cqw;
  font-size: 3cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-recent small {
  font-size: 2.5cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-recent img {
  border-radius: 1.4cqw;
}
.ts-h {
  margin: 0;
  padding: 4cqw 5cqw 1cqw;
  font-size: 5cqw;
  letter-spacing: -0.02em;
}
.ts-h.big {
  font-size: 5.6cqw;
  padding-top: 3cqw;
}
.ts-row {
  display: grid;
  grid-template-columns: 11cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 3cqw;
  padding: 1.8cqw 5cqw;
}
.ts-row img {
  border-radius: 1cqw;
}
.ts-row strong {
  display: block;
  font-size: 3.7cqw;
}
.ts-row small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-end {
  display: grid;
  justify-items: end;
  font-size: 3.5cqw;
}
.ts-end .ts-up {
  font-size: 2.9cqw;
}
.ts-tabs {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 4.5cqw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2cqw 3cqw 1.8cqw;
  border: 1px solid var(--line-strong);
  border-radius: 7cqw;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
}
.ts-tabs span {
  display: grid;
  justify-items: center;
  gap: 0.6cqw;
  color: var(--muted);
  font-size: 2.5cqw;
}
.ts-tabs svg {
  width: 5.2cqw;
  height: 5.2cqw;
}
.ts-tabs em {
  font-style: normal;
}
.ts-tabs .on {
  color: var(--gold);
}
.ts-tabs .scan {
  margin-top: -5cqw;
  padding: 2cqw 2.6cqw 1cqw;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}
.ts-tabs .scan svg {
  width: 6.4cqw;
  height: 6.4cqw;
}

/* Scanner. */
.ts-scan .ts-in {
  background: radial-gradient(ellipse at 50% 38%, #2a2c31 0%, #151619 62%, #0b0b0d 100%);
}
.ts-camera {
  position: relative;
  height: calc(100% - 11cqw);
}
.ts-x {
  position: absolute;
  left: 4cqw;
  top: 1cqw;
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff0f;
}
.ts-x svg {
  width: 4cqw;
  height: 4cqw;
}
.ts-mode {
  display: flex;
  justify-content: center;
  gap: 6cqw;
  padding-top: 3cqw;
  font-size: 3.3cqw;
  letter-spacing: 0.08em;
}
.ts-mode b {
  padding-bottom: 1.2cqw;
  border-bottom: 0.5cqw solid var(--gold);
  color: var(--gold);
}
.ts-mode .mute {
  border-color: transparent;
  color: var(--muted);
}
.ts-frame {
  position: absolute;
  left: 13cqw;
  right: 13cqw;
  top: 24cqw;
  aspect-ratio: 600/825;
}
.ts-held {
  border-radius: 3cqw;
  transform: perspective(500px) rotateX(5deg) rotateZ(-2.5deg);
  box-shadow: 0 5cqw 9cqw #000c;
  animation: ts-drift 5s ease-in-out infinite alternate paused;
}
.is-on .ts-held {
  animation-play-state: running;
}
@keyframes ts-drift {
  to {
    transform: perspective(500px) rotateX(2deg) rotateZ(-0.5deg) translateY(-1cqw);
  }
}
.ts-frame i {
  position: absolute;
  width: 8cqw;
  height: 8cqw;
  border: 0 solid var(--muted);
  transition: border-color 0.3s;
}
.ts-frame .c1 {
  left: -3cqw;
  top: -3cqw;
  border-width: 0.9cqw 0 0 0.9cqw;
  border-top-left-radius: 3cqw;
}
.ts-frame .c2 {
  right: -3cqw;
  top: -3cqw;
  border-width: 0.9cqw 0.9cqw 0 0;
  border-top-right-radius: 3cqw;
}
.ts-frame .c3 {
  left: -3cqw;
  bottom: -3cqw;
  border-width: 0 0 0.9cqw 0.9cqw;
  border-bottom-left-radius: 3cqw;
}
.ts-frame .c4 {
  right: -3cqw;
  bottom: -3cqw;
  border-width: 0 0.9cqw 0.9cqw 0;
  border-bottom-right-radius: 3cqw;
}
.is-on .ts-frame i {
  animation: ts-lock 6s infinite;
}
@keyframes ts-lock {
  0%, 40% {
    border-color: var(--muted);
    transform: none;
  }
  50%, 92% {
    border-color: var(--gold);
    transform: scale(1.12);
  }
  100% {
    border-color: var(--muted);
    transform: none;
  }
}
.ts-sweep {
  position: absolute;
  left: -2cqw;
  right: -2cqw;
  top: 0;
  height: 7cqw;
  border-radius: 3cqw;
  background: linear-gradient(transparent, #f4ce7355, transparent);
  border-bottom: 0.4cqw solid #f4ce7399;
  opacity: 0;
}
.is-on .ts-sweep {
  animation: ts-sweep 6s infinite;
}
@keyframes ts-sweep {
  0% {
    top: -4%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  38% {
    top: 96%;
    opacity: 1;
  }
  44%, 100% {
    top: 96%;
    opacity: 0;
  }
}
.ts-pills {
  position: absolute;
  left: 0;
  right: 0;
  top: 138cqw;
  display: grid;
  justify-items: center;
}
.ts-pills span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 2cqw;
  padding: 2.4cqw 5cqw;
  border: 1px solid var(--line-strong);
  border-radius: 2.4cqw;
  background: #1c1e21e6;
  font-weight: 700;
  font-size: 3.8cqw;
}
.ts-pills u {
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: var(--gold);
}
.ts-pills svg {
  width: 4.4cqw;
  height: 4.4cqw;
  stroke-width: 2.6;
  color: var(--sage);
}
.ts-pills .p2 {
  opacity: 0;
}
.is-on .ts-pills .p1 {
  animation: ts-p1 6s infinite;
}
.is-on .ts-pills .p2 {
  animation: ts-p2 6s infinite;
}
@keyframes ts-p1 {
  0%, 44% {
    opacity: 1;
  }
  48%, 100% {
    opacity: 0;
  }
}
@keyframes ts-p2 {
  0%, 46% {
    opacity: 0;
    transform: scale(0.9);
  }
  52%, 92% {
    opacity: 1;
    transform: none;
  }
  98%, 100% {
    opacity: 0;
  }
}
.ts-found,
.ts-tray {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 31cqw;
  display: grid;
  grid-template-columns: 12cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 3cqw;
  padding: 3cqw;
  border: 1px solid var(--line-strong);
  border-radius: 4cqw;
  background: #222428f2;
  opacity: 0;
  transform: translateY(8cqw);
}
.ts-found img {
  border-radius: 1cqw;
}
.ts-tray {
  display: flex;
  align-items: center;
  gap: 4cqw;
  padding: 3cqw 4cqw;
  border: 1px solid var(--line);
  border-radius: 4cqw;
  background: #1c1e21d9;
}
.ts-tray strong {
  display: block;
  font-size: 3.8cqw;
}
.ts-thumbs {
  display: flex;
}
.ts-thumbs img {
  width: 9cqw;
  border-radius: 1cqw;
  border: 0.5cqw solid #1c1e21;
  box-shadow: 0 1cqw 2cqw #0008;
}
.ts-thumbs img + img {
  margin-left: -3cqw;
  transform: rotate(5deg);
}
.is-on .ts-tray {
  animation: ts-tray 6s infinite;
}
@keyframes ts-tray {
  0%, 44% {
    opacity: 1;
    transform: none;
  }
  50%, 94% {
    opacity: 0;
    transform: translateY(3cqw);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.ts-dock {
  position: absolute;
  left: 6cqw;
  right: 6cqw;
  bottom: 7cqw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.ts-lib {
  display: grid;
  justify-items: center;
  gap: 1.2cqw;
  font-size: 3cqw;
  color: var(--muted);
}
.ts-lib i {
  display: grid;
  place-items: center;
  width: 13cqw;
  height: 13cqw;
  border: 1px solid var(--line-strong);
  border-radius: 3.6cqw;
  background: #ffffff0f;
  color: var(--text);
}
.ts-lib svg {
  width: 6cqw;
  height: 6cqw;
}
.ts-next {
  display: inline-flex;
  align-items: center;
  gap: 2cqw;
  padding: 3.4cqw 6cqw;
  border: 1px solid var(--line-strong);
  border-radius: 6cqw;
  background: #ffffff0f;
  font-weight: 700;
  font-size: 4.2cqw;
}
.ts-next svg {
  width: 5cqw;
  height: 5cqw;
}
.is-on .ts-next {
  animation: ts-next 6s infinite;
}
@keyframes ts-next {
  0%, 46% {
    background-color: #ffffff0f;
    color: var(--text);
    border-color: var(--line-strong);
  }
  54%, 92% {
    background-color: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }
  100% {
    background-color: #ffffff0f;
    color: var(--text);
    border-color: var(--line-strong);
  }
}
.ts-found strong {
  display: block;
  font-size: 4.2cqw;
}
.ts-found b {
  font-size: 5cqw;
  font-variant-numeric: tabular-nums;
}
.is-on .ts-found {
  animation: ts-sheet 6s infinite;
}
@keyframes ts-sheet {
  0%, 48% {
    opacity: 0;
    transform: translateY(8cqw);
  }
  58%, 92% {
    opacity: 1;
    transform: none;
  }
  98%, 100% {
    opacity: 0;
    transform: translateY(8cqw);
  }
}

/* Search and Collection grids. */
.ts-searchbar {
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin: 1cqw 5cqw 0;
  padding: 3.2cqw 4cqw;
  border: 1px solid var(--line);
  border-radius: 4cqw;
  background: var(--panel);
  color: var(--muted);
  font-size: 4cqw;
}
.ts-searchbar.thin {
  margin-top: 3cqw;
  padding-block: 2.4cqw;
  font-size: 3.6cqw;
}
.ts-searchbar svg {
  width: 5cqw;
  height: 5cqw;
}
.ts-chips {
  display: flex;
  gap: 2cqw;
  padding: 3cqw 5cqw 0;
}
.ts-chips span {
  padding: 2cqw 3cqw;
  border: 1px solid var(--line-strong);
  border-radius: 2.4cqw;
  font-size: 3.2cqw;
  font-weight: 600;
  white-space: nowrap;
}
.ts-chips .gold {
  border-color: var(--gold-line);
  background: var(--gold-faint);
  color: var(--gold);
}
.ts-count {
  padding: 3cqw 5cqw 1.6cqw;
  font-size: 3.4cqw;
  font-weight: 700;
  color: var(--text);
}
.ts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  padding: 0 5cqw;
}
.ts-tile,
.ts-card {
  min-width: 0;
  padding: 2cqw;
  border-radius: 3.4cqw;
  background: var(--panel);
}
.ts-tile img,
.ts-card img {
  border-radius: 1.6cqw;
  margin-bottom: 1.6cqw;
}
.ts-tile strong,
.ts-card strong {
  display: block;
  font-size: 3.5cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-tile u {
  display: block;
  color: var(--muted);
  font-size: 2.8cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-tile small,
.ts-card small {
  font-size: 2.7cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1cqw;
}
.ts-buy b,
.ts-card b {
  font-size: 4cqw;
  font-variant-numeric: tabular-nums;
}
.ts-buy i {
  display: grid;
  place-items: center;
  width: 5.4cqw;
  height: 5.4cqw;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-style: normal;
  font-size: 3.6cqw;
}
.ts-tile .ts-up {
  font-size: 2.8cqw;
}
.ts-tile,
.ts-card {
  opacity: 0;
  transform: translateY(5cqw);
}
.is-on .ts-tile,
.is-on .ts-card {
  animation: ts-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.is-on .ts-tile:nth-child(2),
.is-on .ts-card:nth-child(2) {
  animation-delay: 0.12s;
}
.is-on .ts-tile:nth-child(3),
.is-on .ts-card:nth-child(3) {
  animation-delay: 0.24s;
}
.is-on .ts-tile:nth-child(4),
.is-on .ts-card:nth-child(4) {
  animation-delay: 0.36s;
}
@keyframes ts-rise {
  to {
    opacity: 1;
    transform: none;
  }
}
.ts-tabs2 {
  display: flex;
  margin: 1cqw 5cqw 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
}
.ts-tabs2 span {
  flex: 1;
  padding: 2.4cqw 0 2.6cqw;
  text-align: center;
  border-bottom: 0.5cqw solid transparent;
}
.ts-tabs2 .on {
  color: var(--text);
  border-color: var(--gold);
}
.ts-over {
  padding: 4cqw 5cqw 0;
  color: var(--muted);
  font-size: 2.9cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.ts-grid.two {
  padding-top: 3cqw;
}
.ts-card b {
  display: block;
  margin-top: 0.6cqw;
}

/* Card details. */
.ts-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1cqw 5cqw 0;
  height: 10cqw;
}
.ts-nav svg {
  width: 6cqw;
  height: 6cqw;
}
.ts-in .ts-hero {
  width: 40cqw;
  margin: 2cqw auto 0;
  border-radius: 2cqw;
  box-shadow: 0 4cqw 8cqw #000a;
}
.ts-title {
  margin: 0;
  padding: 3cqw 5cqw 0;
  font-size: 7.4cqw;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.ts-sub {
  padding: 0.6cqw 5cqw 0;
  color: var(--muted);
  font-size: 3.4cqw;
}
.ts-badge {
  display: inline-block;
  margin: 2cqw 5cqw 0;
  padding: 1cqw 3cqw;
  border-radius: 6cqw;
  background: #9fc0f0;
  color: #17213a;
  font-size: 3cqw;
  font-weight: 700;
}
.ts-detail .ts-over,
.ts-over + .ts-big {
  padding-inline: 5cqw;
}
.ts-big {
  display: flex;
  align-items: baseline;
  gap: 3cqw;
  padding: 1cqw 5cqw 0;
  font-size: 9.5cqw;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ts-big .ts-up {
  font-size: 3.3cqw;
  letter-spacing: 0;
}
.ts-src {
  padding: 0 5cqw;
  color: var(--muted);
  font-size: 3.1cqw;
}
.ts-detail .ts-chart {
  height: 22cqw;
  margin-top: 3cqw;
}
.ts-cond {
  display: flex;
  justify-content: space-between;
  margin: 0 5cqw;
  padding: 2cqw 0;
  border-bottom: 1px solid var(--line);
  font-size: 3.6cqw;
}
.ts-cta {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 5cqw;
  padding: 3.4cqw;
  border-radius: 4cqw;
  background: var(--gold);
  color: var(--bg);
  text-align: center;
  font-weight: 800;
  font-size: 4cqw;
}

/* Grading. */
.ts-note {
  padding: 0 5cqw;
  text-align: center;
  color: var(--muted);
  font-size: 3cqw;
  margin-top: -1cqw;
}
.ts-gtop {
  display: grid;
  grid-template-columns: 38cqw minmax(0, 1fr);
  gap: 6cqw;
  align-items: center;
  padding: 4cqw 7cqw 0;
}
.ts-slab {
  position: relative;
}
.ts-slab img {
  border-radius: 1.6cqw;
  box-shadow: 0 3cqw 6cqw #0009;
}
.ts-slab i {
  position: absolute;
  background: var(--gold);
  opacity: 0;
}
.ts-slab .v1,
.ts-slab .v2 {
  top: -2cqw;
  bottom: -2cqw;
  width: 0.5cqw;
  transform: scaleY(0);
  transform-origin: top;
}
.ts-slab .h1,
.ts-slab .h2 {
  left: -2cqw;
  right: -2cqw;
  height: 0.5cqw;
  transform: scaleX(0);
  transform-origin: left;
}
.ts-slab .v1 {
  left: 4%;
}
.ts-slab .v2 {
  right: 4%;
}
.ts-slab .h1 {
  top: 3%;
}
.ts-slab .h2 {
  bottom: 3%;
}
.is-on .ts-slab i {
  animation: ts-measure 0.9s 0.3s ease-out forwards;
}
.is-on .ts-slab .h1 {
  animation-delay: 0.5s;
}
.is-on .ts-slab .v2 {
  animation-delay: 0.7s;
}
.is-on .ts-slab .h2 {
  animation-delay: 0.9s;
}
@keyframes ts-measure {
  to {
    opacity: 0.9;
    transform: none;
  }
}
.ts-meas small {
  display: block;
  margin-top: 1.4cqw;
  font-size: 2.8cqw;
}
.ts-meas small:first-child {
  margin-top: 0;
}
.ts-meas b {
  display: block;
  font-size: 7.4cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ts-bar {
  display: block;
  height: 1.6cqw;
  margin-top: 1.2cqw;
  border-radius: 1cqw;
  background: #ffffff14;
  overflow: hidden;
}
.ts-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 1cqw;
  background: var(--gold);
}
.is-on .ts-bar i {
  animation: ts-grow 1s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.ts-bar .w52 {
  --to: 52%;
}
.ts-bar .w51 {
  --to: 51%;
}
.ts-bar .w90 {
  --to: 90%;
  background: var(--sage);
}
.ts-bar .w95 {
  --to: 95%;
  background: var(--sage);
}
@keyframes ts-grow {
  to {
    width: var(--to);
  }
}
.ts-sect {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5cqw 7cqw 0;
  font-size: 4cqw;
}
.ts-sect span {
  color: var(--sage);
  font-size: 3cqw;
  font-weight: 700;
}
.ts-crops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4cqw;
  padding: 2cqw 7cqw 0;
}
.ts-crop {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2cqw;
  background-image: url("cards/umbreon.webp");
  background-size: 360%;
  border: 1px solid var(--line-strong);
}
.ts-crop.c1 {
  background-position: 0 0;
}
.ts-crop.c2 {
  background-position: 100% 0;
}
.ts-crop.c3 {
  background-position: 0 100%;
}
.ts-crop.c4 {
  background-position: 100% 100%;
}
.ts-crop svg {
  position: absolute;
  right: 1cqw;
  bottom: 1cqw;
  width: 5cqw;
  height: 5cqw;
  padding: 0.8cqw;
  border-radius: 50%;
  background: var(--sage);
  color: #10231a;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.4);
}
.is-on .ts-crop svg {
  animation: ts-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.is-on .ts-crop.c1 svg {
  animation-delay: 0.6s;
}
.is-on .ts-crop.c2 svg {
  animation-delay: 0.75s;
}
.is-on .ts-crop.c3 svg {
  animation-delay: 0.9s;
}
.is-on .ts-crop.c4 svg {
  animation-delay: 1.05s;
}
@keyframes ts-pop {
  to {
    opacity: 1;
    transform: none;
  }
}
.ts-find {
  display: grid;
  grid-template-columns: 17cqw 1fr;
  grid-template-rows: auto auto;
  column-gap: 3cqw;
  align-items: center;
  padding: 3.4cqw 7cqw 0;
  font-size: 3.2cqw;
}
.ts-find span:first-child {
  grid-row: span 2;
  color: var(--muted);
}
.ts-find b {
  font-size: 3.6cqw;
}
.ts-estimate {
  display: flex;
  align-items: center;
  gap: 5cqw;
  margin: 4.6cqw 5cqw 0;
  padding: 3.4cqw 4cqw;
  border: 1px solid var(--gold-line);
  border-radius: 4cqw;
  background: var(--gold-faint);
}
.ts-estimate b {
  display: block;
  color: var(--gold);
  font-size: 7.4cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ts-dial {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 17cqw;
  height: 17cqw;
}
.ts-dial em {
  position: absolute;
  font-style: normal;
  font-size: 7cqw;
  font-weight: 800;
}
.ts-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
}
.ts-ring circle {
  stroke-width: 3.4;
  stroke-linecap: round;
}
.ts-ring .bg {
  stroke: #ffffff1a;
}
.ts-ring .fg {
  stroke: var(--gold);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.is-on .ts-ring .fg {
  animation: ts-draw 1.4s 0.9s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
  --end: 0.1;
}
.ts-grading .ts-cta {
  bottom: 32cqw;
  padding-block: 3cqw;
  font-size: 3.8cqw;
}
.ts-fine {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 25cqw;
  color: var(--muted);
  font-size: 2.6cqw;
  text-align: center;
}

@media (max-width: 900px) {
  .tour-body {
    display: block;
  }
  .tour-rail,
  .tour-stage {
    display: none;
  }
  .tour-step {
    min-height: 0;
    max-width: none;
    padding-block: 44px 0;
  }
  .tour-step:first-child {
    min-height: 0;
  }
  .tour-inline {
    display: block;
    width: min(250px, 72%);
    margin: 28px auto 0;
  }
  .tour-inline .tour-shot {
    aspect-ratio: 660/1434;
  }
  .tour-js .tour-step {
    opacity: 1;
  }
  .tour-js .tour-step:not(.tour-seen) {
    opacity: 0;
    transform: translateY(24px);
  }
  .tour-js .tour-step {
    transition:
      opacity 0.6s ease,
      transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-phone {
    transform: none;
  }
  .tour-screen .tour-shot,
  .tour-js .tour-step {
    transition: none;
  }
  .tour-js .tour-step:not(.tour-seen) {
    transform: none;
  }
  .ts-in * {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
  .ts-tile,
  .ts-card {
    opacity: 1;
    transform: none;
  }
}

/* The small diagonal arrow beside a price move (site.js, card-market.js). */
.move-arrow {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.15em;
  vertical-align: -0.12em;
}
.move-arrow.down {
  transform: rotate(90deg);
}

/* "Shop this card" on the card page: where to buy this exact card (affiliate links, disclosed beside them). */
.shop {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.shop h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}
.shop .section-note {
  max-width: 560px;
  margin-top: 0;
  font-size: var(--text-sm);
}
.shop-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  max-width: 640px;
}
.shop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--panel);
  font-size: var(--text-base);
  font-weight: 700;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.shop-link:hover {
  border-color: var(--gold-line);
  background: var(--raised);
}
.shop-link img {
  width: auto;
  max-width: 96px;
}
.shop h2 {
  display: flex;
  align-items: center;
  gap: 4px;
}
.info-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: var(--text-lg);
}
.info-button:hover,
.info-button[aria-expanded="true"] {
  color: var(--text);
}

/* The collection page (site.js, collection-value.js): a value panel with a chart, highlights, then the cards.
 * Classes start coll- so nothing here touches another page. */
.wrap.coll {
  width: calc(100% - clamp(32px, 4vw, 96px));
  max-width: 1600px;
  padding-top: 48px;
}
.coll-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.coll-head h1 {
  font-size: clamp(34px, 4vw, 52px);
}
.coll-head p {
  margin-top: 8px;
}
.coll-top {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.coll-top[hidden] {
  display: none;
}
.coll-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--panel);
}
.coll-value-head,
.coll-hl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.coll-modes {
  display: flex;
  gap: 24px;
}
.coll-modes button {
  min-height: 34px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: 700;
}
.coll-modes button:hover {
  color: var(--text);
}
.coll-modes button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--gold);
}
.coll-ranges {
  display: flex;
  gap: 2px;
}
.coll-ranges button {
  min-height: 34px;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: var(--r-chip);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}
.coll-ranges button:hover {
  color: var(--text);
}
.coll-ranges button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--gold);
}
.coll-total-amount {
  display: block;
  margin-top: 24px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.coll-change {
  min-height: 1.6em;
  margin-top: 8px;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--muted);
}
.coll-change.up {
  color: var(--sage);
}
.coll-change.down {
  color: var(--loss);
}
.coll-chart-wrap {
  margin-top: 20px;
  min-height: 150px;
}
.coll-chart {
  display: block;
  width: 100%;
  height: 150px;
  overflow: visible;
}
.coll-chart .line {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.coll-chart .area {
  fill: color-mix(in srgb, var(--sage) 14%, transparent);
  stroke: none;
}
/* A falling collection is drawn in the loss colour, as the app does. */
.coll-chart-wrap.down .line {
  stroke: var(--loss);
}
.coll-chart-wrap.down .area {
  fill: color-mix(in srgb, var(--loss) 14%, transparent);
}
.coll-plot {
  position: relative;
  touch-action: pan-y;
  cursor: crosshair;
}
.coll-cursor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.coll-cursor[hidden] {
  display: none;
}
.coll-cursor::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 1px;
  background: var(--line-strong);
}
.coll-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--sage);
}
.coll-chart-wrap.down .coll-dot {
  background: var(--loss);
}
.coll-tip {
  position: absolute;
  left: var(--tip);
  top: -8px;
  translate: -50% -100%;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--raised);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}
.coll-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.coll-note {
  margin-top: 6px;
  font-size: var(--text-xs);
}
.coll-note:empty {
  display: none;
}
.coll-hl-head h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}
.coll-count-pill {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}
.coll-count-pill[hidden] {
  display: none;
}
#coll-hl {
  margin-top: 8px;
}
.coll-hl-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.coll-hl-row:last-child {
  border-bottom: 0;
}
.coll-hl-art {
  display: block;
  aspect-ratio: 600 / 825;
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
}
.coll-hl-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coll-hl-text strong {
  display: block;
  font-size: var(--text-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coll-hl-text small {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
}
.coll-hl-right {
  font-size: var(--text-md);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.coll-tabs[hidden],
.coll-tools[hidden],
.coll-meta[hidden] {
  display: none;
}
.coll-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.coll-tab-row {
  display: flex;
  gap: 28px;
}
.coll-tab-row button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: -1px;
}
.coll-tab-row button:hover {
  color: var(--text);
}
.coll-tab-row button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--gold);
}
.coll-tab-row span {
  padding: 2px 9px;
  border-radius: var(--r-chip);
  background: var(--raised);
  color: var(--muted);
  font-size: var(--text-xs);
}
.coll-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.coll-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--panel);
  color: var(--muted);
}
.coll-search:focus-within {
  border-color: var(--gold-line);
}
.coll-search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  outline: none;
}
.coll-search .icon {
  flex: none;
}
.coll-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 40px;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
}
.coll-filters[hidden] {
  display: none;
}
.coll-filters p {
  margin-bottom: 8px;
  font-size: var(--text-sm);
}
.coll-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coll-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}
.coll-chip:hover {
  border-color: var(--gold-line);
}
.coll-chip[aria-pressed="true"],
.coll-chip.radio:has(input:checked) {
  border-color: var(--gold-line);
  background: var(--gold-faint);
  color: var(--gold);
}
.coll-chip.radio {
  position: relative;
}
.coll-chip.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.coll-chip.radio:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.coll-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 16px;
  font-size: var(--text-md);
}
.coll-meta p {
  margin: 0;
}
.coll-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 18px;
}
.coll-grid > .empty-state {
  grid-column: 1 / -1;
}
.coll-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel);
  transition: border-color 0.2s;
}
.coll-tile:hover {
  border-color: var(--gold-edge);
}
.coll-tile .tile-media {
  display: block;
}
.coll-tile .card-art,
.coll-tile .art-unavailable {
  border-radius: 8px;
}
.coll-edit-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #151619d9;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.15s;
}
.coll-tile:hover .coll-edit-btn,
.coll-edit-btn:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .coll-edit-btn {
    opacity: 1;
  }
}
.coll-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-top: 14px;
}
.coll-text h3 {
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coll-sub {
  margin-top: 6px;
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coll-pricerow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 14px;
}
.coll-price {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.coll-price.none {
  color: var(--muted);
  font-size: var(--text-md);
  font-weight: 600;
}
.coll-move {
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.coll-move.up {
  color: var(--sage);
}
.coll-move.down {
  color: var(--loss);
}
.coll-move.flat {
  color: var(--muted);
}
.coll-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.coll-chips span {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--bg);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}
.coll-edit {
  max-width: 460px;
}
.coll-edit h2 {
  font-size: var(--text-2xl);
}
.coll-edit p.quote-note {
  margin: 6px 0 0;
}
.coll-edit-group + p.quote-note {
  margin-top: 12px;
}
.coll-edit-field {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.coll-edit-field input {
  width: 100%;
}
.coll-edit-group {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.coll-edit-group legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.coll-edit .actions {
  margin-top: 28px;
}
@media (max-width: 980px) {
  .coll-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .coll-head {
    align-items: stretch;
    flex-direction: column;
  }
  .coll-panel {
    padding: 22px;
  }
  .coll-tools {
    flex-wrap: wrap;
  }
  .coll-search {
    flex-basis: 100%;
  }
  .coll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .coll-tile {
    padding: 12px;
  }
  .coll-edit-btn {
    top: 18px;
    right: 18px;
  }
  .coll-meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* The collection page's top bar spans the same width as the page under it, so the logo and menu line up with the panels at every window size. */
[data-page="collection"] .site-header .wrap {
  width: calc(100% - clamp(32px, 4vw, 96px));
  max-width: 1600px;
}
/* The value panel is as tall as the highlights beside it; the chart takes the room instead of leaving the panel empty below. */
.coll-value {
  display: flex;
  flex-direction: column;
}
.coll-value .coll-chart-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 190px;
}
.coll-value .coll-plot {
  flex: 1;
  min-height: 150px;
  margin-top: 24px;
}
.coll-value .coll-chart {
  height: 100%;
}
