/* The home page (scancomps.com/). Black Lime like the app, always dark (the
   previews are dark screenshots of the app). Motion: reveal on scroll,
   parallax layers, a pinned step-by-step phone and a phone whose screen
   scrolls with the page; home.js drives them, and all of it stops under
   Reduce Motion. Without JavaScript everything is simply shown. */
@media (prefers-color-scheme: light) {
  body.home {
    color-scheme: dark;
    --bg: #000000;
    --surface: #111311;
    --raised: #1b1e1a;
    --line: #262a24;
    --text: #f2f5ee;
    --muted: #9ba396;
    --faint: #7f877a;
    --accent: #b4f07b;
    --on-accent: #0b1a05;
    --accent-soft: #16240e;
    --accent-strong: #c9f79f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.6), 0 12px 32px rgb(0 0 0 / 0.6);
    --glow: 0 10px 30px rgb(180 240 123 / 0.22);
    --hero:
      radial-gradient(120% 90% at 50% 0%, #24451a 0%, rgb(36 69 26 / 0) 60%),
      linear-gradient(180deg, #0c1709 0%, #000 100%);
  }
}
body.home {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

/* Header: sticks, and frosts once the page moves under it. */
.home .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: auto;
  margin: 0;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.home .site-header.scrolled {
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

/* A phone: the app's screenshots inside a dark bezel. */
.device {
  position: relative;
  margin: 0;
  width: 290px;
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 46px;
  background: #0b0c0b;
  box-shadow:
    0 0 0 1px #2c312a,
    inset 0 0 0 1px #1d211c,
    0 30px 70px rgb(0 0 0 / 0.75),
    0 0 90px rgb(180 240 123 / 0.1);
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #000;
}
.device-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.eyebrow {
  margin-bottom: 14px !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.home h1,
.home h2,
.home h3 {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 850;
  letter-spacing: -0.01em;
}
.home h2 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 0.98;
}

/* Hero: the copy on the left, a live-looking stage on the right. */
.landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: min(820px, calc(100svh - 72px));
  padding: 24px 0 40px;
}
.landing h1 {
  font-size: clamp(3.25rem, 8.4vw, 6.75rem);
  line-height: 0.9;
}
.landing h1 span {
  color: var(--accent);
}
.lead {
  margin-top: 24px !important;
  max-width: 30ch;
  font-size: 1.25rem;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.site-button {
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.site-button:hover {
  transform: translateY(-1px);
}
.site-button:not(.secondary):hover {
  box-shadow: 0 14px 36px rgb(180 240 123 / 0.32);
}
.site-button.secondary:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.site-button:active {
  transform: scale(0.97);
}

.landing-stage {
  position: relative;
  height: 660px;
  perspective: 1400px;
}
.landing-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(180 240 123 / 0.22), rgb(180 240 123 / 0) 75%);
  filter: blur(10px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}
/* Layers move at their own speed as the page scrolls (--py from home.js)
   and lean toward the pointer (--rx, --ry). */
.landing-device,
.scan-pile,
.scan-log,
.float {
  will-change: transform;
}
.landing-device {
  position: absolute;
  left: 50%;
  top: 30px;
  margin-left: -145px;
  transform: translate3d(0, var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}

/* The scan run: a pile of cards from six games beside the phone, each one
   taken into the viewfinder, locked, read and added; the list on the right
   fills and totals. home.js drives it (.running); without it, or under
   Reduce Motion, the first card sits in the frame and the list is full. */
.scan-pile {
  position: absolute;
  width: 150px;
  aspect-ratio: 480 / 670;
  left: calc(50% - 255px);
  top: 150px;
  transform: translate3d(0, var(--py, 0px), 0);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.scan-pile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 22px 50px rgb(0 0 0 / 0.7),
    0 0 40px rgb(180 240 123 / 0.08);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;
}
.scan-pile img:nth-child(1) {
  transform: rotate(-19deg) translate(-26px, 26px);
}
.scan-pile img:nth-child(2) {
  transform: rotate(-16deg) translate(-20px, 20px);
}
.scan-pile img:nth-child(3) {
  transform: rotate(-13deg) translate(-14px, 14px);
}
.scan-pile img:nth-child(4) {
  transform: rotate(-10deg) translate(-8px, 8px);
}
.scan-pile img:nth-child(5) {
  transform: rotate(-7deg) translate(-3px, 3px);
}
.scan-pile img:nth-child(6) {
  transform: rotate(-4deg);
}
.scan-pile:not(.running) img:last-child,
.scan-pile img.taken {
  opacity: 0;
  transform: translate(150px, -10px) rotate(2deg) scale(0.7);
}

/* The camera's view: the scanner's own frame on the screenshot. */
.scan-feed {
  position: absolute;
  left: 25%;
  right: 25%;
  top: 26.5%;
  height: 32%;
  overflow: hidden;
}
.scan-feed > img {
  position: absolute;
  left: 6%;
  top: 5.5%;
  width: 88%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.6);
  opacity: 0;
  transform: translateY(150%) rotate(14deg);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
}
.scan-run:not(.running) .scan-feed > img:first-child,
.scan-feed > img.in {
  opacity: 1;
  transform: none;
}
.scan-feed > img.out {
  opacity: 0;
  transform: translate(120%, -40%) rotate(-10deg) scale(0.5);
}
/* Locks onto the card: lime corners close in around it. */
.scan-frame {
  position: absolute;
  inset: -2%;
  border: 3px solid var(--accent);
  border-radius: 12px;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgb(180 240 123 / 0.7));
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / 26% 22% no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 26% 22% no-repeat,
    linear-gradient(#000 0 0) 0 100% / 26% 22% no-repeat,
    linear-gradient(#000 0 0) 100% 100% / 26% 22% no-repeat;
  mask:
    linear-gradient(#000 0 0) 0 0 / 26% 22% no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 26% 22% no-repeat,
    linear-gradient(#000 0 0) 0 100% / 26% 22% no-repeat,
    linear-gradient(#000 0 0) 100% 100% / 26% 22% no-repeat;
  transition:
    inset 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}
.scan-run.reading .scan-frame {
  inset: 3% 4%;
  opacity: 1;
}
.scan-sweep {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 5%;
  height: 26%;
  opacity: 0;
  background: linear-gradient(to bottom, rgb(180 240 123 / 0), rgb(180 240 123 / 0.3) 88%, #b4f07b 90%, rgb(180 240 123 / 0) 93%);
}
.scan-run.reading .scan-sweep {
  animation: sweep 0.8s 0.15s ease-in-out both;
}
@keyframes sweep {
  from {
    opacity: 1;
    translate: 0 0;
  }
  85% {
    opacity: 1;
  }
  to {
    opacity: 0;
    translate: 0 265%;
  }
}
/* The app's toast once a card is added. */
.scan-toast {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 6.2%;
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #eef2ea;
  color: #10140e;
  font-size: 0.6875rem;
  line-height: 1.3;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.4);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}
.scan-toast span {
  color: #2d6a10;
  font-weight: 700;
}
.scan-run.running .scan-toast {
  opacity: 0;
  transform: translateY(-130%);
}
.scan-run.running .scan-toast.show {
  opacity: 1;
  transform: none;
}

/* What was scanned, newest on top, and the running total. */
.scan-log {
  position: absolute;
  width: 262px;
  left: calc(50% + 50px);
  bottom: 30px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(17 19 17 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 24px 60px rgb(0 0 0 / 0.7);
  transform: translate3d(0, var(--py, 0px), 0);
  animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.log-head,
.log-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.log-head {
  padding-bottom: 8px;
}
.log-head span:first-child {
  color: var(--text);
  font-weight: 700;
}
.scan-log ol {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.scan-log li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    opacity 0.35s ease,
    translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.8s ease;
}
.scan-log.running li {
  display: none;
}
.scan-log.running li.done {
  display: grid;
  animation: logged 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes logged {
  from {
    opacity: 0;
    translate: 0 -8px;
    background-color: var(--accent-soft);
  }
}
.scan-log.running.clearing li.done {
  opacity: 0;
}
.log-card {
  width: 22px;
  height: auto;
  border-radius: 3px;
}
.log-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.log-name strong {
  overflow: hidden;
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.log-name img {
  width: auto;
  height: 12px;
  align-self: flex-start;
}
.log-price {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.log-total {
  padding-top: 9px;
}
.log-total strong {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 850;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* A binder page of real cards drifting by, then what gets priced. */
.binder {
  padding: 24px 0 12px;
}
.marquee {
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  margin: 0;
  padding: 24px 0;
  list-style: none;
}
/* Moves only once home.js has doubled the cards, so the loop is seamless. */
.marquee-track.looping {
  animation: drift 42s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}
.marquee-track li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 190px;
}
.marquee-track img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.65);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.marquee-track li:nth-child(odd) img {
  transform: rotate(-2deg);
}
.marquee-track li:nth-child(even) img {
  transform: rotate(2deg) translateY(10px);
}
.marquee-track li:hover img {
  transform: translateY(-8px) scale(1.04);
}
.marquee-track span {
  color: var(--faint);
  font-size: 0.8125rem;
  text-align: center;
  text-wrap: balance;
}
/* What it prices, as a spec row: one figure and one line per cell. */
.coverage {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.coverage li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 20px;
  border-left: 1px solid var(--line);
}
.coverage li:first-child {
  padding-left: 0;
  border-left: 0;
}
.coverage strong {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 850;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--text);
}
.coverage li:first-child strong {
  color: var(--accent);
}
.coverage span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}
.js .coverage li:nth-child(2) {
  transition-delay: 70ms;
}
.js .coverage li:nth-child(3) {
  transition-delay: 140ms;
}
.js .coverage li:nth-child(4) {
  transition-delay: 210ms;
}
.js .coverage li:nth-child(5) {
  transition-delay: 280ms;
}

/* Every game's logo, each linking to its own page; on the home page and,
   without Pokémon's own, under each game page. */
.games {
  padding-top: 110px;
}
.games-lead {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.logo-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.logo-grid.all {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.logo-grid a {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 10px;
  height: 100%;
  padding: 22px 14px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
/* A lime glow rises behind the logo on hover. */
.logo-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 50% 110%, rgb(180 240 123 / 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.logo-grid a:hover,
.logo-grid a:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--line));
}
.logo-grid a:hover::before,
.logo-grid a:focus-visible::before {
  opacity: 1;
}
.logo-grid img {
  position: relative;
  width: 100%;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo-grid a:hover img,
.logo-grid a:focus-visible img {
  transform: scale(1.06);
}
.logo-grid span {
  position: relative;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.2;
}
.logo-grid a:hover span {
  color: var(--text);
}
/* The tiles come in column by column. */
.js .logo-grid.all li:nth-child(5n + 2) {
  transition-delay: 60ms;
}
.js .logo-grid.all li:nth-child(5n + 3) {
  transition-delay: 120ms;
}
.js .logo-grid.all li:nth-child(5n + 4) {
  transition-delay: 180ms;
}
.js .logo-grid.all li:nth-child(5n) {
  transition-delay: 240ms;
}

/* A game's own page. */
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 48px 0 24px;
}
.game-hero.no-cards {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.game-hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 0.92;
}
.game-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.game-cards img {
  width: min(240px, 46%);
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 24px 60px rgb(0 0 0 / 0.7),
    0 0 60px rgb(180 240 123 / 0.12);
  transform: rotate(-6deg);
}
.game-cards img + img {
  margin-left: -40px;
  transform: rotate(7deg) translateY(30px);
}
.game-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}
.game-facts > div {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.game-page .game-facts h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.game-facts p {
  color: var(--muted);
}
.game-page .faq {
  padding-top: 72px;
}
.game-links {
  padding: 72px 0 24px;
}
.game-page .game-links h2 {
  font-size: 1.75rem;
}
/* How it works: the phone holds still while the steps scroll past it, and
   shows each step's screen. */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 120px;
}
.how-pin {
  position: sticky;
  top: calc(50svh - 300px);
  align-self: start;
  display: flex;
  justify-content: center;
  height: 600px;
}
.how-device {
  width: 278px;
}
.how-device img {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.how[data-active="1"] .how-device img[data-step="1"],
.how[data-active="2"] .how-device img[data-step="2"],
.how[data-active="3"] .how-device img[data-step="3"] {
  opacity: 1;
  transform: none;
}
.how-steps h2 {
  margin-bottom: 24px;
}
.step {
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 46ch;
  transition: opacity 0.4s ease;
}
.js .how .step {
  opacity: 0.32;
}
.js .how[data-active="1"] .step[data-step="1"],
.js .how[data-active="2"] .step[data-step="2"],
.js .how[data-active="3"] .step[data-step="3"] {
  opacity: 1;
}
.step-shot {
  display: none;
}
.step-num {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 850;
  font-size: 1.25rem;
  color: var(--accent);
}
.step h3 {
  margin: 6px 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1;
}
.step p,
.collect-copy > p,
.vendors-head > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Collectors: the phone's screen scrolls through a real collection as the
   page scrolls; pieces of it float out at their own speed. */
.collect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 120px;
}
.collect-copy > p {
  margin-top: 20px;
  max-width: 44ch;
}
.ticks {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticks li {
  padding-left: 30px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.collect-stage {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collect-device .scroll-shot {
  inset: auto;
  left: 4.1%;
  top: 2%;
  width: 91.8%;
  height: auto;
  transform: translate3d(0, calc(var(--shift, 0px) * -1), 0);
}
.collect-device .screen-bottom {
  inset: auto 0 0 0;
  height: auto;
}
.float {
  position: absolute;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px var(--line),
    0 28px 60px rgb(0 0 0 / 0.75);
  transform: translate3d(0, var(--py, 0px), 0);
}
.float-value {
  width: 230px;
  left: calc(50% - 280px);
  top: 70px;
}
.float-tiles {
  width: 250px;
  left: calc(50% + 70px);
  bottom: 110px;
  border-radius: 16px;
}

/* Vendors: one panel, four tiles of different weight. */
.vendors {
  margin-top: 140px;
}
.vendors-head > p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 56ch;
}
.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  margin-top: 40px;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s ease;
}
.bento-tile:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--line));
}
.bento-tile p {
  color: var(--muted);
  max-width: 40ch;
}
.bento-tile strong {
  color: var(--text);
}
.bento-label {
  grid-row: span 3;
  display: grid;
  grid-template-columns: 1fr 250px;
  grid-template-rows: 1fr auto;
  gap: 24px 28px;
  align-items: center;
  background:
    radial-gradient(70% 60% at 30% 35%, rgb(180 240 123 / 0.1), transparent 70%),
    var(--surface);
}
.bento-label > p {
  grid-column: 1 / -1;
}
.label-scan {
  position: relative;
  transform: rotate(-4deg);
}
.label-scan img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 44px rgb(0 0 0 / 0.7);
}
/* A phone's scanner passing over the QR code. */
.scan-beam {
  position: absolute;
  top: 6%;
  bottom: 6%;
  right: 4%;
  width: 26%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(180 240 123 / 0), rgb(180 240 123 / 0.28) 85%, #b4f07b 86%, rgb(180 240 123 / 0) 88%);
  background-size: 100% 220%;
  animation: beam 2.6s ease-in-out infinite;
}
@keyframes beam {
  from {
    background-position: 0 100%;
  }
  to {
    background-position: 0 -40%;
  }
}
.buyer-device,
.deal-device {
  width: 250px;
}
.bento-deal {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
}
.deal-device {
  width: 150px;
  padding: 6px;
  border-radius: 28px;
}
.deal-device .device-screen {
  border-radius: 23px;
}
.buyer-device {
  padding: 7px;
  border-radius: 36px;
}
.buyer-device .device-screen {
  border-radius: 29px;
}
.bento-small {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* The app's own buttons and sizes, the first one selected. */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  padding: 6px 11px;
  border-radius: var(--r-sm);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}
.chips li:first-child {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--line));
}

/* Questions: the heading and where to ask more stay put beside the list. */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: start;
  padding-top: 120px;
}
.faq-head {
  position: sticky;
  top: 112px;
}
.faq-head p {
  margin-top: 16px;
  max-width: 30ch;
  color: var(--muted);
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.375rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin-top: 10px;
  color: var(--muted);
}
.faq a {
  color: var(--accent);
}
/* Closing: the ask on the left; on the right the scanner's frame around a
   QR code that opens the app, cards from three games behind it, all on a
   faint measuring grid. */
.closing {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin: 120px 0 0;
  padding: 64px 56px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 90% at 85% 50%, rgb(180 240 123 / 0.14), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  opacity: 0.55;
}
.closing-copy,
.closing-scan {
  position: relative;
}
.closing h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}
.closing-scan {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 0;
}
.closing-scan figcaption {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.closing-fan {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 130px;
  aspect-ratio: 480 / 670;
}
.closing-fan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.65);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.closing-fan {
  translate: -50% 0;
}
.closing-fan img:nth-child(1) {
  transform: translate(-120px, 26px) rotate(-15deg);
}
.closing-fan img:nth-child(2) {
  transform: translate(120px, 20px) rotate(13deg);
}
.closing-fan img:nth-child(3) {
  transform: translate(0, -34px) rotate(-3deg);
}
.closing:hover .closing-fan img:nth-child(1) {
  transform: translate(-140px, 18px) rotate(-19deg);
}
.closing:hover .closing-fan img:nth-child(2) {
  transform: translate(140px, 12px) rotate(17deg);
}
.closing:hover .closing-fan img:nth-child(3) {
  transform: translate(0, -46px) rotate(-1deg);
}
/* The app's lime viewfinder corners, with its beam passing over the code. */
.qr-frame {
  position: relative;
  padding: 22px;
}
.qr-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
  border-radius: 18px;
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 0 100% / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 100% 100% / 30% 30% no-repeat;
  mask:
    linear-gradient(#000 0 0) 0 0 / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 0 100% / 30% 30% no-repeat,
    linear-gradient(#000 0 0) 100% 100% / 30% 30% no-repeat;
}
.qr-frame img {
  display: block;
  width: 200px;
  height: 200px;
  padding: 12px;
  border-radius: 10px;
  background: #b4f07b;
  box-shadow: 0 0 60px rgb(180 240 123 / 0.25);
}
.qr-sweep {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(11 26 5 / 0), rgb(11 26 5 / 0.18) 90%, #f2f5ee 92%, rgb(11 26 5 / 0) 95%);
  mix-blend-mode: normal;
  animation: qr-sweep 2.8s ease-in-out infinite;
}
@keyframes qr-sweep {
  from {
    translate: 0 -40px;
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  to {
    translate: 0 170px;
    opacity: 0;
  }
}
.home .site-footer {
  margin-top: 56px;
}
.closing-copy > p {
  margin-top: 16px;
  color: var(--muted);
}

/* Reveal on scroll: only once home.js runs, so nothing hides without it. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 36px;
  transition:
    opacity 0.7s ease,
    translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js [data-reveal].shown {
  opacity: 1;
  translate: 0 0;
}
.js .how .step[data-reveal].shown {
  opacity: 0.32;
}
.js .how[data-active="1"] .step[data-step="1"].shown,
.js .how[data-active="2"] .step[data-step="2"].shown,
.js .how[data-active="3"] .step[data-step="3"].shown {
  opacity: 1;
}

@media (max-width: 900px) {
  .landing,
  .collect,
  .game-hero,
  .game-facts {
    grid-template-columns: 1fr;
  }
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  /* Pokémon takes the first row, so the rest fill whole rows. */
  .logo-grid.all {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .logo-grid.all li:first-child {
    grid-column: 1 / -1;
  }
  .logo-grid.all li:first-child img {
    height: 80px;
  }
  .games {
    padding-top: 72px;
  }
  .landing {
    min-height: 0;
    padding-top: 8px;
  }
  .landing-stage {
    height: 560px;
  }
  .landing-device {
    width: 240px;
    margin-left: -120px;
  }
  .scan-pile {
    width: 150px;
    left: calc(50% - 250px);
  }
  .scan-log {
    width: 250px;
    left: calc(50% + 30px);
    bottom: 20px;
  }
  /* Phones: each step shows its own screen; nothing pins. */
  .how {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }
  .how-pin {
    display: none;
  }
  .step {
    min-height: 0;
    padding: 28px 0;
  }
  .js .how .step,
  .js .how .step[data-reveal].shown {
    opacity: 1;
  }
  .step-shot {
    display: block;
    width: 220px;
    height: auto;
    margin-bottom: 22px;
    border-radius: 30px;
    box-shadow:
      0 0 0 1px #2c312a,
      0 24px 56px rgb(0 0 0 / 0.7);
  }
  .collect {
    padding-top: 72px;
  }
  .collect-stage {
    height: 600px;
  }
  .collect-device {
    width: 250px;
  }
  .float-value {
    width: 170px;
    left: calc(50% - 190px);
  }
  .float-tiles {
    width: 190px;
    left: calc(50% + 20px);
  }
  .vendors {
    margin-top: 88px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-label {
    grid-row: auto;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .label-scan {
    width: min(340px, 100%);
  }
  .bento-deal {
    grid-template-columns: 120px 1fr;
  }
  .deal-device {
    width: 120px;
  }
  .faq,
  .closing {
    margin-top: 0;
    padding-top: 88px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .faq-head {
    position: static;
  }
  /* The game count takes a row; the other four pair up. */
  .coverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coverage li {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .coverage li:first-child {
    grid-column: 1 / -1;
    border-top: 0;
  }
  .coverage li:nth-child(odd):not(:first-child) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }
  .closing {
    grid-template-columns: 1fr;
    margin-top: 88px;
    padding: 56px 28px;
  }
}
/* Phones: everything inside the screen's edges, smaller phones, less space
   between sections, and each step's text before its screen. */
@media (max-width: 560px) {
  .home h2 {
    font-size: clamp(2rem, 9.5vw, 2.625rem);
  }
  .logo-grid,
  .logo-grid.all {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .logo-grid a {
    padding: 16px 8px 10px;
    gap: 8px;
  }
  .logo-grid img {
    height: 44px;
  }
  .logo-grid span {
    font-size: 0.75rem;
  }
  .game-hero {
    gap: 20px;
    padding-top: 20px;
  }
  .game-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }
  .game-cards {
    min-height: 300px;
  }
  .game-cards img {
    width: min(170px, 44%);
  }
  .game-facts {
    margin-top: 32px;
  }
  .game-facts > div {
    padding: 20px;
  }
  .landing h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
  .lead {
    margin-top: 16px !important;
    font-size: 1.0625rem;
  }
  .cta-row {
    margin-top: 24px;
    gap: 10px;
  }
  .cta-row .site-button {
    flex: 1 1 100%;
    min-height: 50px;
  }
  /* Nothing here may widen the page: a phone browser zooms out for it. */
  .landing-stage {
    height: 430px;
    margin-top: 4px;
    overflow-x: clip;
  }
  .landing-glow {
    inset: 0;
  }
  .landing-device {
    width: 200px;
    margin-left: -100px;
    top: 8px;
    padding: 7px;
    border-radius: 34px;
  }
  .landing-device .device-screen {
    border-radius: 28px;
  }
  .scan-pile {
    width: 104px;
    left: calc(50% - 172px);
    top: 60px;
  }
  .scan-pile img {
    border-radius: 7px;
  }
  .scan-log {
    width: 186px;
    left: auto;
    right: 0;
    bottom: 6px;
    padding: 9px 10px;
  }
  /* The three newest rows. */
  .scan-log ol {
    max-height: 123px;
    overflow: hidden;
  }
  .scan-log li {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 5px 2px;
  }
  .log-card {
    width: 16px;
  }
  .log-name strong,
  .log-price {
    font-size: 0.6875rem;
  }
  .log-name img {
    height: 9px;
  }
  .log-total strong {
    font-size: 1.125rem;
  }
  .scan-toast {
    padding: 8px 9px;
    font-size: 0.5rem;
  }
  .binder {
    padding-top: 8px;
  }
  .marquee-track {
    gap: 18px;
    padding: 16px 0;
  }
  .marquee-track li {
    width: 112px;
    gap: 8px;
  }
  .marquee-track span {
    font-size: 0.75rem;
  }
  .coverage strong {
    font-size: 1.75rem;
  }
  .how {
    padding-top: 64px;
  }
  .how-steps h2 {
    margin-bottom: 4px;
  }
  .step {
    padding: 28px 0 8px;
  }
  .step h3 {
    font-size: 1.75rem;
  }
  .step-shot {
    order: 5;
    align-self: center;
    width: 190px;
    margin: 22px 0 0;
    border-radius: 26px;
  }
  .collect {
    gap: 28px;
    padding-top: 64px;
  }
  .collect-stage {
    height: 470px;
  }
  .collect-device {
    width: 210px;
    padding: 7px;
    border-radius: 36px;
  }
  .collect-device .device-screen {
    border-radius: 30px;
  }
  /* The floating close-ups crowd a small screen. */
  .float {
    display: none;
  }
  .vendors {
    margin-top: 64px;
  }
  .bento {
    margin-top: 28px;
    gap: 12px;
  }
  .bento-tile {
    padding: 20px;
  }
  .bento-label {
    gap: 20px;
  }
  .buyer-device {
    width: 180px;
  }
  .bento-deal {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }
  .deal-device {
    width: 96px;
    padding: 4px;
    border-radius: 18px;
  }
  .deal-device .device-screen {
    border-radius: 15px;
  }
  .faq {
    padding-top: 64px;
  }
  .closing {
    margin-top: 64px;
    padding: 40px 18px 32px;
  }
  /* On the phone itself a code to open the app is no use: the cards stay. */
  .qr-frame,
  .closing-scan figcaption {
    display: none;
  }
  .closing-fan {
    position: relative;
    top: auto;
    left: auto;
    translate: none;
    width: 104px;
    height: 160px;
  }
  .closing-fan img:nth-child(1),
  .closing:hover .closing-fan img:nth-child(1) {
    transform: translate(-84px, 14px) rotate(-14deg);
  }
  .closing-fan img:nth-child(2),
  .closing:hover .closing-fan img:nth-child(2) {
    transform: translate(84px, 14px) rotate(14deg);
  }
  .closing-fan img:nth-child(3),
  .closing:hover .closing-fan img:nth-child(3) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js .how .step,
  .js .how .step[data-reveal].shown {
    opacity: 1;
    translate: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee-track li[aria-hidden] {
    display: none;
  }
}
