@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,700&display=swap");

:root {
  color-scheme: dark;
  --ink: #08111f;
  --ink-soft: #101c2d;
  --ink-faint: #1a2940;
  --paper: #f5f2e9;
  --paper-deep: #eae5d8;
  --white: #fffef9;
  --yellow: #f6c945;
  --yellow-bright: #ffdc5f;
  --mint: #6ee7b7;
  --blue: #7aa7ff;
  --muted: #93a0b3;
  --paper-muted: #6a6d6f;
  --line: rgba(255, 255, 255, 0.13);
  --paper-line: rgba(8, 17, 31, 0.13);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 11% 9%, rgba(75, 115, 179, 0.14), transparent 24rem),
    var(--ink);
  color: var(--white);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

button,
input {
  max-width: 100%;
  font: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(1160px, calc(100% - 36px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(246, 201, 69, 0.14);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--yellow);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow);
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name b {
  color: var(--yellow);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.header-action-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(246, 201, 69, 0.12);
}

.hero {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  min-height: 730px;
  margin: 0 auto;
  padding: 78px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.74fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: 14%;
  top: 18%;
  border: 1px solid rgba(246, 201, 69, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(246, 201, 69, 0.025),
    0 0 0 130px rgba(246, 201, 69, 0.018);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5ccda;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(110, 231, 183, 0.38);
  border-radius: 50%;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--yellow);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero-intro {
  max-width: 560px;
  margin: 30px 0 26px;
  color: #aeb8c8;
  font-size: 17px;
  line-height: 1.72;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #d8deea;
  font-size: 12px;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row i {
  color: var(--mint);
  font-style: normal;
}

.scanner-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(17, 29, 46, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.scanner-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -14px -14px 18px;
  border: 1px solid rgba(246, 201, 69, 0.14);
  border-radius: var(--radius-lg);
}

.scanner-card-topline,
.value-card-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.step-kicker {
  display: block;
  margin-bottom: 7px;
  color: #8996a9;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scanner-card h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.camera-ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--mint);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.camera-ready i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.game-switch {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #091422;
}

.game-switch-button {
  min-width: 0;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #7f8ca0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.game-switch-button:hover,
.game-switch-button:focus-visible {
  color: var(--white);
}

.game-switch-button.active {
  border-color: rgba(246, 201, 69, 0.28);
  background: rgba(246, 201, 69, 0.09);
  color: var(--white);
}

.game-switch-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.pokemon-mark {
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background:
    linear-gradient(
      to bottom,
      var(--yellow) 0 42%,
      #091422 42% 58%,
      #eff4fb 58% 100%
    );
}

.pokemon-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 2px solid #091422;
  border-radius: 50%;
  background: var(--yellow);
  transform: translate(-50%, -50%);
}

.onepiece-mark {
  border: 2px solid #e9554f;
  border-radius: 50%;
}

.onepiece-mark::before,
.onepiece-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #e9554f;
  transform: translate(-50%, -50%);
}

.onepiece-mark::before {
  width: 11px;
  height: 2px;
}

.onepiece-mark::after {
  width: 2px;
  height: 11px;
}

.capture-zone {
  position: relative;
  min-height: 350px;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    #0b1626;
  background-size: 25px 25px;
}

.capture-zone.dragging {
  border-color: var(--yellow);
  background-color: rgba(246, 201, 69, 0.06);
}

.capture-preview {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  filter: brightness(0.67);
}

.capture-zone.has-image .capture-preview {
  display: block;
}

.capture-zone.has-image .capture-prompt {
  opacity: 0;
}

.scan-corners span {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-color: var(--yellow);
}

.scan-corners span:nth-child(1) {
  top: 24px;
  left: 24px;
  border-top: 2px solid var(--yellow);
  border-left: 2px solid var(--yellow);
  border-radius: 8px 0 0;
}

.scan-corners span:nth-child(2) {
  top: 24px;
  right: 24px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  border-radius: 0 8px 0 0;
}

.scan-corners span:nth-child(3) {
  bottom: 76px;
  left: 24px;
  border-bottom: 2px solid var(--yellow);
  border-left: 2px solid var(--yellow);
  border-radius: 0 0 0 8px;
}

.scan-corners span:nth-child(4) {
  right: 24px;
  bottom: 76px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  border-radius: 0 0 8px;
}

.capture-prompt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 180ms ease;
}

.capture-prompt strong {
  margin: 15px 0 4px;
  font-size: 14px;
}

.capture-prompt > span:last-child {
  color: #78869a;
  font-size: 11px;
}

.camera-icon {
  position: relative;
  width: 55px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 201, 69, 0.45);
  border-radius: 12px;
  background: rgba(246, 201, 69, 0.08);
}

.camera-icon::before {
  content: "";
  position: absolute;
  width: 19px;
  height: 7px;
  top: -6px;
  border: 1px solid rgba(246, 201, 69, 0.45);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.camera-icon i {
  width: 17px;
  height: 17px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(246, 201, 69, 0.08);
}

.capture-button {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  left: 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.capture-button:hover {
  transform: translateY(-1px);
  background: var(--yellow-bright);
}

.shutter {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--yellow);
}

.photo-help {
  margin: 10px 0 0;
  color: #76849a;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.or-divider {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #66748a;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.manual-form {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.search-field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 5px 5px 5px 15px;
  overflow: hidden;
  background: #0a1524;
  transition: border-color 160ms ease;
}

.search-field:focus-within {
  border-color: rgba(246, 201, 69, 0.75);
}

.search-field input {
  width: 0;
  min-width: 0;
  flex: 1 1 0%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  line-height: 1.35;
}

.search-field input::placeholder {
  color: #67758a;
}

.search-field button {
  flex: 0 0 42px;
  width: 42px;
  max-width: 42px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #1c2a3e;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.search-glyph {
  width: 13px;
  height: 13px;
  border: 1.5px solid #738198;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  display: block;
  width: 6px;
  height: 1.5px;
  margin: 10px 0 0 9px;
  background: #738198;
  transform: rotate(45deg);
}

.browse-sets-button {
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.browse-sets-button:hover,
.browse-sets-button:focus-visible {
  border-color: rgba(246, 201, 69, 0.5);
  background: rgba(246, 201, 69, 0.07);
}

.browse-sets-button > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.browse-sets-button strong {
  font-size: 11px;
}

.browse-sets-button small {
  color: #7f8da2;
  font-size: 8px;
}

.browse-sets-button > span:last-child {
  color: var(--yellow);
  font-size: 15px;
}

.browse-sets-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #1c2a3e;
}

.browse-sets-icon i {
  width: 14px;
  height: 17px;
  border: 1px solid var(--yellow);
  border-radius: 2px;
  box-shadow:
    4px -3px 0 -1px #1c2a3e,
    4px -3px 0 0 rgba(246, 201, 69, 0.45);
}

.demo-link {
  width: 100%;
  margin-top: 17px;
  border: 0;
  background: none;
  color: #77869b;
  font-size: 10px;
  cursor: pointer;
}

.demo-link span {
  color: #b7c0cf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-clarifier {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-clarifier h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.card-clarifier > p {
  margin: 7px 0 15px;
  color: #8c98aa;
  font-size: 10px;
  line-height: 1.55;
}

.card-candidate-list {
  max-height: 420px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: #34435a transparent;
  scrollbar-width: thin;
}

.card-candidate {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.card-candidate:hover,
.card-candidate:focus-visible {
  border-color: rgba(246, 201, 69, 0.55);
  background: rgba(246, 201, 69, 0.07);
  transform: translateY(-1px);
}

.card-candidate-image {
  width: 48px;
  aspect-ratio: 0.716;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #214e8a, #0f274c);
  color: rgba(255, 255, 255, 0.7);
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.card-candidate-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-candidate-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-candidate-copy strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-candidate-copy > span {
  overflow: hidden;
  color: #8290a5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-candidate-number {
  padding: 5px 7px;
  border-radius: 999px;
  background: #1c2a3e;
  color: var(--yellow);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  white-space: nowrap;
}

.card-candidate-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  color: #8c98aa;
  font-size: 10px;
  line-height: 1.55;
}

.how-it-works {
  padding: 100px max(18px, calc((100vw - 1160px) / 2)) 120px;
  border-top: 1px solid var(--line);
  background: #0a1422;
}

.section-heading {
  max-width: 600px;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--line);
}

.steps-grid article {
  min-height: 220px;
  padding: 30px;
  background: #0a1422;
}

.step-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--yellow);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.steps-grid h3 {
  margin: 34px 0 9px;
  font-size: 21px;
}

.steps-grid p {
  max-width: 260px;
  margin: 0;
  color: #8794a8;
  font-size: 13px;
  line-height: 1.65;
}

.catalogue-section {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  padding: 38px max(14px, calc((100vw - 1160px) / 2)) 90px;
  background:
    radial-gradient(circle at 90% 3%, rgba(246, 201, 69, 0.13), transparent 24rem),
    #0a1422;
}

.catalogue-shell {
  width: min(1160px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.catalogue-topbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: #79879b;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.catalogue-back,
.all-sets-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8deea;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.catalogue-heading {
  max-width: 720px;
  margin: 56px 0 28px;
}

.catalogue-heading h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.catalogue-heading p {
  max-width: 590px;
  margin: 18px 0 0;
  color: #8e9aad;
  font-size: 13px;
  line-height: 1.65;
}

.set-search-form {
  width: min(590px, 100%);
  min-width: 0;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.set-search-form input {
  width: 0;
  min-width: 0;
  flex: 1 1 0%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #101c2d;
  color: var(--white);
  font-size: 16px;
}

.set-search-form input:focus {
  border-color: rgba(246, 201, 69, 0.65);
}

.set-search-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.catalogue-state {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #9aa6b8;
  font-size: 11px;
}

.all-sets-button {
  margin: 8px 0 22px;
  color: var(--yellow);
}

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

.set-tile {
  min-width: 0;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101c2d;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.set-tile:hover,
.set-tile:focus-visible {
  border-color: rgba(246, 201, 69, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.set-tile-art {
  position: relative;
  min-height: 145px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(122, 167, 255, 0.22), transparent 45%),
    linear-gradient(135deg, #172a45, #0a1524);
}

.set-tile-logo {
  width: auto;
  max-width: 88%;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.set-card-stack {
  position: relative;
  width: 158px;
  height: 118px;
  display: block;
}

.set-card-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 101px;
  border: 2px solid rgba(255, 255, 255, 0.66);
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

.set-card-preview-1 {
  z-index: 3;
  transform: translate(-50%, -50%);
}

.set-card-preview-2 {
  z-index: 2;
  transform: translate(-91%, -49%) rotate(-8deg);
}

.set-card-preview-3 {
  z-index: 1;
  transform: translate(-9%, -49%) rotate(8deg);
}

.set-tile-symbol {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity: 0.75;
}

.catalogue-placeholder {
  width: 100%;
  height: 100%;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  text-align: center;
}

.catalogue-placeholder-ball {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 3px solid #f6c945;
  border-radius: 50%;
  background:
    linear-gradient(
      to bottom,
      #f6c945 0,
      #f6c945 44%,
      #0b1727 44%,
      #0b1727 56%,
      #eef4ff 56%,
      #eef4ff 100%
    );
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.catalogue-placeholder-ball i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid #0b1727;
  border-radius: 50%;
  background: #f6c945;
  transform: translate(-50%, -50%);
}

.catalogue-placeholder-wordmark {
  color: #ffcb38;
  font-size: 25px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
  -webkit-text-stroke: 1px #2854a1;
  text-shadow:
    1px 2px 0 #2854a1,
    0 5px 12px rgba(0, 0, 0, 0.32);
}

.catalogue-placeholder-label {
  color: rgba(255, 255, 255, 0.62);
  font-family: "DM Mono", monospace;
  font-size: 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catalogue-placeholder-card {
  min-height: 100%;
  gap: 7px;
  background:
    radial-gradient(circle at 50% 34%, rgba(45, 92, 169, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(7, 18, 34, 0.08), rgba(7, 18, 34, 0.5));
}

.catalogue-placeholder-card .catalogue-placeholder-ball {
  width: 38px;
  height: 38px;
}

.catalogue-placeholder-card .catalogue-placeholder-wordmark {
  font-size: 20px;
}

.catalogue-placeholder-onepiece {
  gap: 2px;
  background:
    radial-gradient(circle at 50% 32%, rgba(229, 85, 79, 0.22), transparent 46%),
    linear-gradient(145deg, rgba(7, 18, 34, 0.08), rgba(7, 18, 34, 0.5));
}

.catalogue-placeholder-pirate-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f5f7fb;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 0.86;
  text-shadow:
    2px 2px 0 #1b3150,
    0 7px 14px rgba(0, 0, 0, 0.34);
  transform: rotate(-2deg);
}

.catalogue-placeholder-pirate-mark::before {
  content: "";
  width: 39px;
  height: 16px;
  margin-bottom: 6px;
  border: 3px solid #e9554f;
  border-radius: 50% 50% 42% 42%;
  background:
    linear-gradient(170deg, transparent 0 48%, #e9554f 49% 58%, transparent 59%),
    rgba(229, 85, 79, 0.08);
}

.catalogue-placeholder-pirate-mark span {
  color: #e9554f;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.catalogue-placeholder-onepiece .catalogue-placeholder-label {
  margin-top: 5px;
}

.catalogue-placeholder-card .catalogue-placeholder-pirate-mark {
  font-size: 11px;
}

.catalogue-placeholder-card .catalogue-placeholder-pirate-mark span {
  font-size: 19px;
}

.set-tile-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
}

.set-tile-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-tile-copy span {
  flex: 0 0 auto;
  color: #8390a4;
  font-size: 8px;
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.catalogue-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #101c2d;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.catalogue-card:hover,
.catalogue-card:focus-visible {
  border-color: rgba(246, 201, 69, 0.52);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.catalogue-card-art {
  width: 100%;
  aspect-ratio: 0.716;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, #214e8a, #0f274c);
  color: rgba(255, 255, 255, 0.7);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.catalogue-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.catalogue-card-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 3px 3px;
}

.catalogue-card-copy strong {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalogue-card-copy span {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 999px;
  background: #1c2a3e;
  color: var(--yellow);
  font-family: "DM Mono", monospace;
  font-size: 7px;
}

.results-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  padding: 42px 18px 90px;
  background:
    radial-gradient(circle at 90% 3%, rgba(246, 201, 69, 0.19), transparent 20rem),
    var(--paper);
  color: var(--ink);
}

.results-shell {
  width: min(920px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.results-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.results-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.text-button,
.share-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  color: var(--paper-muted);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2cb67d;
}

.source-badge.demo::before {
  background: #d69e16;
}

.result-hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--paper-line);
}

.result-card-image {
  position: relative;
  aspect-ratio: 0.716;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid #e8bf3c;
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 5%),
    radial-gradient(circle at center, transparent 0 18%, rgba(8, 17, 31, 0.16) 18.5% 19.5%, transparent 20%),
    linear-gradient(135deg, #214e8a, #0f274c);
  box-shadow: 0 16px 35px rgba(8, 17, 31, 0.19);
}

.result-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.result-card-image.has-image img {
  display: block;
}

.result-card-image.has-image span {
  display: none;
}

.result-card-image > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.result-card-image > span i {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(8, 17, 31, 0.3);
}

.result-kicker {
  color: #7e827e;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-identity h2 {
  max-width: 630px;
  margin: 7px 0 20px;
  font-size: clamp(28px, 5vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.refine-form label {
  display: block;
  margin-bottom: 6px;
  color: #7c7e7d;
  font-size: 10px;
}

.refine-form > div {
  width: 100%;
  min-width: 0;
  max-width: 480px;
  display: flex;
  border-bottom: 1px solid rgba(8, 17, 31, 0.28);
}

.refine-form input {
  width: 0;
  min-width: 0;
  flex: 1 1 0%;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.refine-form button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.demo-notice {
  margin-top: 24px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  border: 1px solid rgba(173, 119, 0, 0.25);
  border-radius: var(--radius-sm);
  background: #fff4c9;
}

.demo-notice strong {
  font-size: 11px;
}

.demo-notice p {
  margin: 0;
  color: #685b36;
  font-size: 10px;
  line-height: 1.55;
}

.market-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--paper-line);
}

.market-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.market-section-heading h3,
.market-unavailable h3 {
  margin: 5px 0 7px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.045em;
}

.market-section-heading p,
.market-unavailable p {
  max-width: 580px;
  margin: 0;
  color: #737978;
  font-size: 10px;
  line-height: 1.6;
}

.market-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-status-confirmed {
  background: #e7f9f1;
  color: #167452;
}

.market-status-pending {
  background: #f3eee0;
  color: #80691d;
}

.market-status-estimate {
  background: #e8eef8;
  color: #315782;
}

.market-unavailable {
  margin-top: 34px;
  padding: 24px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px dashed #c9c2ae;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.38);
}

.market-unavailable-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c2ae;
  border-radius: 50%;
  color: #8c7c4c;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin: 32px 0 14px;
}

.asking-summary-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 12px;
  margin: 26px 0 8px;
}

.asking-stat {
  min-width: 0;
  min-height: 155px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.asking-stat-primary {
  border-color: #b9cbe0;
  background: #eaf0f7;
}

.asking-stat > span {
  color: #737b83;
  font-size: 10px;
  font-weight: 700;
}

.asking-stat strong {
  margin: 15px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 43px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.asking-stat small {
  margin-top: auto;
  color: #858b8e;
  font-size: 8px;
  line-height: 1.5;
}

.asking-method-note {
  padding-bottom: 4px;
}

.value-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 26px;
}

.value-card-primary {
  background: var(--ink);
  color: var(--white);
}

.value-card-cash {
  border: 1px solid var(--paper-line);
  background: var(--white);
}

.value-label {
  display: block;
  color: #8e9aab;
  font-size: 11px;
  font-weight: 600;
}

.value-card-cash .value-label {
  color: #707475;
}

.value-card strong {
  display: block;
  margin: 17px 0 7px;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.value-card-cash strong {
  color: var(--ink);
}

.value-caption {
  color: #77859a;
  font-size: 10px;
}

.percent-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f9f1;
  color: #167452;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
}

.value-spark {
  position: absolute;
  right: 22px;
  bottom: 23px;
  left: 22px;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.45;
}

.value-spark i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--yellow);
}

.value-spark i:nth-child(1) { height: 36%; }
.value-spark i:nth-child(2) { height: 60%; }
.value-spark i:nth-child(3) { height: 48%; }
.value-spark i:nth-child(4) { height: 81%; }
.value-spark i:nth-child(5) { height: 59%; }
.value-spark i:nth-child(6) { height: 90%; }
.value-spark i:nth-child(7) { height: 71%; }
.value-spark i:nth-child(8) { height: 100%; }

.cash-meter {
  position: absolute;
  right: 26px;
  bottom: 29px;
  left: 26px;
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: #e9e7df;
}

.cash-meter span {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42c592, #75deb6);
}

.range-line {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  color: #777c7d;
  font-size: 9px;
}

.range-line strong {
  color: var(--ink);
  font-size: 11px;
}

.range-line span:last-child {
  text-align: right;
}

.listings-header {
  margin: 54px 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.listings-header h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.share-button {
  padding: 9px 13px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
}

.listing-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.listing {
  min-height: 98px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--paper-line);
}

.listing:last-child {
  border-bottom: 0;
}

.listing-number {
  color: #a1a29f;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.listing-copy {
  min-width: 0;
}

.listing-copy a {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 7px;
  color: #858986;
  font-size: 9px;
}

.listing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.listing-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 5px;
  border-radius: 50%;
  background: #b8bab6;
}

.listing-price {
  min-width: 95px;
  text-align: right;
}

.listing-price strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.listing-price span {
  display: block;
  margin-top: 4px;
  color: #8b8e8a;
  font-size: 8px;
}

.method-note {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  color: #696d6c;
}

.method-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.method-note p {
  margin: 2px 0 0;
  font-size: 9px;
  line-height: 1.65;
}

.method-note strong {
  color: var(--ink);
}

.loading-sheet {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 15, 0.82);
  backdrop-filter: blur(12px);
}

.loading-sheet[hidden],
.results-section[hidden],
.demo-notice[hidden],
.card-clarifier[hidden],
.catalogue-section[hidden],
.catalogue-state[hidden],
.set-search-form[hidden],
.all-sets-button[hidden],
.set-gallery[hidden],
.card-gallery[hidden],
.hero[hidden],
.how-it-works[hidden],
.market-section[hidden],
.market-unavailable[hidden] {
  display: none;
}

.loading-card {
  width: min(400px, 100%);
  padding: 46px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
  text-align: center;
  box-shadow: var(--shadow);
}

.loading-orbit {
  width: 78px;
  height: 78px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 201, 69, 0.2);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loading-orbit::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid rgba(246, 201, 69, 0.45);
  border-radius: 50%;
}

.loading-orbit i {
  position: absolute;
  width: 9px;
  height: 9px;
  margin-top: -77px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 16px var(--yellow);
}

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

.loading-card h2 {
  margin: 5px 0 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.loading-card p {
  margin: 0;
  color: #8390a4;
  font-size: 11px;
}

.loading-progress {
  height: 4px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 99px;
  background: #233148;
}

.loading-progress span {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width 600ms ease;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(390px, calc(100% - 36px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #172338;
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 42px max(18px, calc((100vw - 1160px) / 2));
  display: grid;
  grid-template-columns: 1fr minmax(300px, 1.7fr) 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #778499;
  font-size: 9px;
  line-height: 1.6;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7ddea;
  font-weight: 800;
}

.brand-mark-small {
  width: 23px;
  height: 23px;
}

footer p {
  margin: 0;
  text-align: center;
}

.footer-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
  text-align: right;
}

.support-form {
  margin: 0;
}

.support-form button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: #929db0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.support-form button:hover,
.support-form button:focus-visible {
  border-color: rgba(255, 205, 47, 0.42);
  background: rgba(255, 205, 47, 0.07);
  color: var(--yellow);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .scanner-card {
    width: min(560px, 100%);
    margin: 0 auto;
  }

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

  .steps-grid article {
    min-height: 180px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-meta {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 30px);
    height: 68px;
  }

  .brand-name {
    font-size: 14px;
  }

  .header-action {
    padding: 9px 11px;
    font-size: 10px;
  }

  .hero {
    width: calc(100% - 28px);
    padding: 48px 0 72px;
    gap: 42px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(45px, 14vw, 65px);
  }

  .hero-intro {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.66;
  }

  .trust-row {
    gap: 10px 14px;
    font-size: 10px;
  }

  .scanner-card {
    padding: 18px;
    border-radius: 24px;
  }

  .scanner-card::after {
    display: none;
  }

  .scanner-card h2 {
    font-size: 20px;
  }

  .capture-zone {
    min-height: min(390px, 105vw);
    margin-top: 18px;
  }

  .camera-ready {
    font-size: 8px;
  }

  .how-it-works {
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .catalogue-section {
    padding: 24px 10px 65px;
  }

  .catalogue-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalogue-heading {
    margin: 38px 0 24px;
  }

  .catalogue-heading h2 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .catalogue-heading p {
    font-size: 11px;
  }

  .set-search-form button {
    padding: 0 12px;
    font-size: 10px;
  }

  .set-gallery,
  .card-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .set-tile {
    min-height: 164px;
    border-radius: 14px;
  }

  .set-tile-art {
    min-height: 104px;
    padding: 16px;
  }

  .set-tile-logo {
    max-height: 58px;
  }

  .set-card-stack {
    width: 112px;
    height: 84px;
  }

  .set-card-preview {
    width: 52px;
    height: 73px;
    border-width: 1px;
    border-radius: 5px;
  }

  .set-tile-symbol {
    width: 20px;
    height: 20px;
  }

  .set-tile-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 11px;
  }

  .set-tile-copy strong {
    width: 100%;
    font-size: 10px;
  }

  .catalogue-card {
    padding: 6px;
    border-radius: 12px;
  }

  .catalogue-card-art {
    border-radius: 7px;
  }

  .catalogue-card-copy {
    flex-direction: column;
    padding-top: 9px;
  }

  .catalogue-card-copy strong {
    font-size: 9px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .steps-grid article {
    min-height: 165px;
    padding: 24px;
  }

  .results-section {
    padding: 25px 14px 70px;
  }

  .results-topbar {
    margin-bottom: 22px;
  }

  .results-topbar-actions {
    gap: 6px;
  }

  .result-hero {
    grid-template-columns: 95px 1fr;
    gap: 17px;
    padding-bottom: 26px;
  }

  .result-card-image {
    border-width: 4px;
    border-radius: 9px;
  }

  .result-identity h2 {
    margin: 5px 0 13px;
    font-size: 24px;
  }

  .refine-form label {
    font-size: 8px;
  }

  .refine-form input {
    font-size: 16px;
  }

  .refine-form button {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .demo-notice {
    grid-template-columns: 1fr;
  }

  .market-section {
    margin-top: 26px;
    padding-top: 24px;
  }

  .market-section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .market-section-heading .market-status {
    align-self: flex-start;
  }

  .market-section-heading h3,
  .market-unavailable h3 {
    font-size: 24px;
  }

  .market-status {
    padding: 6px 8px;
    font-size: 7px;
  }

  .market-unavailable {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .market-unavailable-icon {
    width: 32px;
    height: 32px;
  }

  .market-unavailable .market-status {
    grid-column: 2;
    justify-self: start;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .value-card {
    min-height: 181px;
    padding: 23px;
  }

  .value-card strong {
    font-size: clamp(34px, 14vw, 48px);
    overflow-wrap: anywhere;
  }

  .asking-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .asking-stat {
    min-height: 132px;
    padding: 17px;
  }

  .asking-stat-primary {
    grid-column: 1 / -1;
  }

  .asking-stat strong {
    font-size: 30px;
  }

  .range-line {
    grid-template-columns: 1fr auto;
    padding: 10px 13px;
  }

  .range-line span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .listings-header {
    margin-top: 42px;
  }

  .listings-header h3 {
    font-size: 23px;
  }

  .share-button {
    font-size: 9px;
  }

  .listing {
    grid-template:
      "number copy" auto
      ". price" auto
      / 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 14px 13px;
  }

  .listing-number {
    grid-area: number;
    padding-top: 2px;
  }

  .listing-copy {
    grid-area: copy;
  }

  .listing-copy a {
    display: -webkit-box;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.45;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .listing-meta {
    gap: 6px;
    font-size: 8px;
  }

  .listing-meta .listing-condition {
    display: none;
  }

  .listing-price {
    min-width: 0;
    grid-area: price;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }

  .listing-price strong {
    font-size: 14px;
  }

  .listing-price span {
    margin-top: 0;
    text-align: right;
  }

  .source-badge {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .scanner-card-topline {
    flex-wrap: wrap;
  }

  .results-section {
    padding: 22px 10px 58px;
  }

  .results-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .source-badge {
    max-width: 150px;
  }

  .result-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
  }

  .result-identity h2 {
    font-size: 21px;
  }

  .asking-summary-grid {
    grid-template-columns: 1fr;
  }

  .asking-stat-primary {
    grid-column: auto;
  }

  .asking-stat {
    min-height: 116px;
  }

  .listing {
    grid-template:
      "number copy" auto
      ". price" auto
      / 19px minmax(0, 1fr);
    padding: 13px 11px;
  }

  .card-candidate {
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .card-candidate-image {
    width: 43px;
  }

  .card-candidate-number {
    grid-column: 2;
    justify-self: start;
  }
}

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