/* Worth Ripping
   Layout: one reading column with a wide band for the verdict, charts and tables.
   White everywhere; colour is kept for the verdict, in traffic-light badges:
   green for rip it, yellow for toss-up, red for keep it sealed. One type family
   (Archivo, variable width): extra wide for the verdict, normal for reading. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f5f5f8;
  --ink: #1c1638;
  --ink-soft: #4a4860;
  --ink-mute: #64627a;
  --line: #e7e6ef;
  --line-strong: #cfcde0;
  --brand: #3355e8;
  --brand-ink: #ffffff;

  /* Verdicts: traffic lights */
  --rip-fill: #15803d;
  --rip-ink: #ffffff;
  --toss-fill: #ffc940;
  --toss-ink: #1c1638;
  --sealed-fill: #dc2626;
  --sealed-ink: #ffffff;

  /* Charts */
  --bar-win: #16a34a;
  --bar-lose: #8e8ca3;
  --bar-tier: #3355e8;
  --grid-lose: #e4e3ec;
  --tip-bg: #1c1638;
  --tip-ink: #ffffff;
  --line-box: #3355e8;

  --shadow: 0 1px 2px rgb(28 22 56 / 0.05), 0 6px 20px rgb(28 22 56 / 0.06);
  --radius: 14px;
  --font: "Archivo Variable", "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wide: 70rem;
  --gutter: clamp(1rem, 3.5vw, 2rem);
}

/* ---------- base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1,
h2 {
  font-style: italic;
  font-weight: 860;
  font-stretch: 116%;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.3rem);
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

strong {
  font-weight: 720;
}

section[id] {
  scroll-margin-top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 0.5rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

/* ---------- header and footer ---------- */

.notice {
  background: var(--tint);
  font-size: 0.9375rem;
}

.notice p {
  margin: 0;
  padding: 0.55rem 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding-block: 0.9rem;
}

/* the logo */
.brand {
  display: inline-flex;
  align-items: center;
  order: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 2.85rem;
  margin-block: -0.35rem;
}

@media (max-width: 36rem) {
  .brand__logo {
    height: 2.35rem;
    margin-block: -0.2rem;
  }
}

.brand:hover {
  color: var(--ink);
}



.site-nav ul,
.lang ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 620;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.lang ul {
  gap: 0.1rem;
}

.lang a {
  display: block;
  padding: 0.2rem 0.45rem;
  font-size: 0.875rem;
  font-weight: 680;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
}

.lang a:hover {
  color: var(--ink);
  background: var(--tint);
}

.lang a[aria-current] {
  color: var(--paper);
  background: var(--ink);
}

.site-nav {
  order: 3;
  margin-left: auto;
}

.lang {
  order: 4;
}

.langhint {
  background: var(--ink);
  color: var(--paper);
}

.langhint__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
}

.langhint__link {
  color: var(--paper);
  font-weight: 650;
}

.langhint__link:hover {
  color: var(--paper);
}

.langhint__close {
  flex: none;
  padding: 0.1rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding: 0;
  margin: 0.8rem 0 1rem;
}

.site-footer__legal {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  max-width: 54rem;
  margin-top: 0.35rem !important;
}

/* ---------- page structure ---------- */

.page-head {
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0;
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-mute);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.3rem;
}

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

.meta {
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  max-width: 48rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}

.section__intro {
  color: var(--ink-soft);
  max-width: 44rem;
  margin: -0.1rem 0 1.2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem 3.5rem;
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.prose > * {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* ---------- home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: end;
  padding-block: clamp(1.75rem, 4vw, 3rem) 1.4rem;
}

@media (min-width: 58rem) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.hero h1 {
  margin-bottom: 0.3em;
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.6rem);
  line-height: 0.98;
}

.hero .lede {
  margin-bottom: 0;
}

.hero__search .search--hero {
  margin-top: 0;
  max-width: none;
}

.rules {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.rules div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.rules dt {
  padding-top: 0.1rem;
}

.rules dd {
  margin: 0;
}

@media (max-width: 30rem) {
  .rules div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ---------- verdict: card, badge and chips ---------- */

.pack,
.tile,
.chip {
  --fill: var(--toss-fill);
  --fill-ink: var(--toss-ink);
}

.pack--rip,
.tile--rip,
.chip--rip {
  --fill: var(--rip-fill);
  --fill-ink: var(--rip-ink);
}

.pack--sealed,
.tile--sealed,
.chip--sealed {
  --fill: var(--sealed-fill);
  --fill-ink: var(--sealed-ink);
}

.pack {
  padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.pack p {
  max-width: 36em;
}

.pack__product {
  margin: 0;
  font-weight: 680;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* the verdict word sits on its traffic-light colour */
.pack__verdict {
  display: inline-block;
  align-self: flex-start;
  margin: 0.3em 0 0.32em;
  padding: 0.1em 0.3em 0.14em;
  border-radius: 0.16em;
  background: var(--fill);
  color: var(--fill-ink);
  font-size: clamp(2.3rem, 1rem + 5.6vw, 4.8rem);
  font-stretch: 125%;
  font-weight: 870;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.pack__verdict--long {
  font-size: clamp(1.8rem, 0.7rem + 4.2vw, 3.3rem);
}

.pack__lead {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.pack__reason {
  margin-bottom: 0.9rem;
}

.pack__note {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.pack strong {
  font-weight: 800;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .pack__verdict {
    animation: reveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
  }

  @keyframes reveal {
    from {
      clip-path: inset(0 100% 0 0 round 0.16em);
    }

    to {
      clip-path: inset(0 0 0 0 round 0.16em);
    }
  }
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.6rem 0.42rem;
  border-radius: 7px;
  background: var(--fill);
  color: var(--fill-ink);
  font-size: 0.875rem;
  font-weight: 780;
  font-stretch: 112%;
  line-height: 1;
  white-space: nowrap;
}

/* set tiles: a white card per box, with the verdict as a badge */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.tiles--small {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}

.tile-link {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  border-radius: 18px;
}

.tile-link:hover {
  color: var(--ink);
}

.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.3rem 1.3rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.tile-link:hover .tile,
.tile-link:focus-visible .tile {
  border-color: var(--line-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .tile {
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .tile-link:hover .tile,
  .tile-link:focus-visible .tile {
    transform: translateY(-3px);
  }
}

.tile__game {
  font-size: 0.875rem;
  font-weight: 680;
  color: var(--ink-soft);
}

.tile__name {
  margin-top: 0.15rem;
  font-size: 1.9rem;
  font-stretch: 125%;
  font-weight: 870;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* a set's full title under its code ("OP-17", then "The World's Strongest Warriors") */
.tile__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  font-stretch: 100%;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.tile__verdict {
  align-self: flex-start;
  margin: 0.75rem 0 0.6rem;
  padding: 0.32rem 0.6rem 0.34rem;
  border-radius: 8px;
  background: var(--fill);
  color: var(--fill-ink);
  font-size: 1.05rem;
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.1;
}

.tile__line {
  font-size: 0.975rem;
}

.tile__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.tile.tile--soon {
  color: var(--ink-soft);
  border: 1.5px dashed var(--line-strong);
  box-shadow: none;
}

.tile--soon .tile__verdict {
  background: var(--tint);
  color: var(--ink);
}

.tile--soon .tile__name {
  color: var(--ink);
}

.tiles--small .tile {
  padding: 1rem 1.2rem;
}

.tiles--small .tile__name {
  font-size: 1.15rem;
}

/* ---------- box pictures ---------- */

/* A real photo of each box (the game's artwork until the photo is in), with
   today's price on a sticker. The sticker is HTML so it stays readable. */
.boxshot {
  position: relative;
  display: block;
}

.boxphoto {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font);
}

/* cut out of its white background, so it stands on the page */
.boxphoto--clear {
  filter: drop-shadow(0 12px 12px rgb(28 22 56 / 0.16));
}

/* a box photographed in a scene keeps its frame */
.boxphoto--framed {
  border-radius: 14px;
  box-shadow: 0 14px 28px -14px rgb(28 22 56 / 0.55);
}

/* the price goes top right, where box photos leave room above the pack */
.boxshot--clear .sticker {
  top: 3%;
  bottom: auto;
}

.sticker {
  position: absolute;
  right: 0;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.9em;
  aspect-ratio: 1;
  font-size: var(--sticker-size, 0.95rem);
  line-height: 1;
  text-align: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffffff, 0 3px 10px rgb(28 22 56 / 0.25);
  transform: rotate(-8deg);
}

.sticker__price {
  font-size: 1.3em;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sticker__note {
  margin-top: 0.25em;
  font-size: 0.7em;
  font-weight: 650;
}

/* in a tile, the box stands on the card */
.tile__window {
  display: block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0 0;
}

.tile__window .boxshot {
  max-width: 15.5rem;
  margin-inline: auto;
}

/* every photo gets the same frame, so names and verdicts line up across tiles;
   the photo is fitted inside it, never cropped */
.tile__window .boxshot--real {
  aspect-ratio: 5 / 4;
}

.tile__window .boxphoto {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* the game's artwork until the box photo is in: it fills the frame */
.tile__window .boxshot--art .boxphoto {
  object-fit: cover;
}

.tile__window .boxshot--none {
  aspect-ratio: 5 / 4;
}

.product__box .boxshot--none {
  min-height: 12rem;
}

/* big pictures: tall boxes get narrower, so no box is taller than the others */
.spot__box .boxshot--real,
.product__box .boxshot--real {
  width: min(100%, calc(22rem * var(--ar, 1.25)));
  margin-inline: auto;
}

/* phones: the box sits beside its name and verdict, the details run full width
   below, so a list of boxes stays short */
@media (max-width: 36rem) {
  .tile {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1rem;
    align-content: start;
    padding: 0.9rem 1.1rem 1rem 0.9rem;
  }

  .tile > * {
    grid-column: 1 / -1;
  }

  .tile__window {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0;
    padding: 0;
  }

  .tile__game,
  .tile__name,
  .tile__verdict {
    grid-column: 2;
  }

  /* the price is in the line below, so the sticker would only crowd the small box */
  .tile__window .sticker {
    display: none;
  }

  .tile__name {
    font-size: 1.5rem;
  }

  .tile__verdict {
    justify-self: start;
    margin: 0.45rem 0 0;
    font-size: 0.9375rem;
  }

  .tile__verdict + .tile__line {
    margin-top: 0.8rem;
  }

  .tile__meta {
    padding-top: 0.5rem;
    font-size: 0.8125rem;
  }
}

/* ---------- search ---------- */

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

.search {
  position: relative;
}

.search--header {
  order: 1;
  flex: 1 1 14rem;
  max-width: 26rem;
}

.search__field {
  position: relative;
}

.search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  color: var(--ink-mute);
  pointer-events: none;
}

.search__field input {
  width: 100%;
  margin: 0;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font: inherit;
  font-size: 0.975rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.search__field input::placeholder {
  color: var(--ink-mute);
  opacity: 1;
}

.search__field input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}

/* big bar on the home page and the All boxes page */
.search--hero {
  margin-top: 1.7rem;
  max-width: 34rem;
}

.search--hero .search__field input,
.search__field--big input {
  padding: 0.95rem 1.2rem 0.95rem 3rem;
  font-size: 1.1rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.search--hero .search__field input {
  padding-right: 7.5rem;
}

.search--hero .search__icon,
.search__field--big .search__icon {
  left: 1.1rem;
  width: 1.25rem;
  height: 1.25rem;
}

.search__button {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search__button:hover {
  background: var(--brand);
}

.search__try {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.search-toggle {
  display: none;
  order: 2;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.search-toggle .search__icon {
  position: static;
  transform: none;
  width: 1.1rem;
  height: 1.1rem;
  color: currentColor;
}

.search-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* header on medium screens: links move to their own row */
@media (max-width: 64rem) {
  .site-nav {
    order: 5;
    width: 100%;
    margin-left: 0;
  }

  .lang {
    margin-left: auto;
  }
}

/* phones: the search bar opens from a magnifier button */
@media (max-width: 40rem) {
  .site-header__inner {
    column-gap: 0.75rem;
  }

  .site-nav ul {
    column-gap: 0.95rem;
  }

  .site-nav a {
    font-size: 0.97rem;
  }

  .search--header {
    display: none;
    order: 6;
    flex: 1 1 100%;
    max-width: none;
  }

  .search--header.is-open {
    display: block;
  }

  .search-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .lang {
    margin-left: auto;
  }

  .search-toggle ~ .lang {
    margin-left: 0;
  }

  /* the keyboard's search key does the button's job */
  .search--hero .search__button {
    display: none;
  }

  .search--hero .search__field input {
    padding-right: 1rem;
  }
}

/* languages on phones: one small menu instead of four links */
.lang__menu {
  display: none;
  position: relative;
}

.lang__menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.lang__menu > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang__menu[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.lang .lang__menu ul {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 2px;
  min-width: 4.5rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgb(28 22 56 / 0.14);
}

.lang .lang__menu a {
  padding: 0.45rem 0.7rem;
  font-size: 0.9375rem;
}

@media (max-width: 40rem) {
  .lang .lang__list {
    display: none;
  }

  .lang__menu {
    display: block;
  }
}

/* results as you type */
.search__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: min(21rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgb(28 22 56 / 0.14), 0 2px 6px rgb(28 22 56 / 0.06);
}

.sr-group {
  padding: 0.6rem 0.6rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-mute);
}

.sr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.sr:hover,
.sr[aria-selected="true"] {
  background: var(--tint);
  color: var(--ink);
}

.sr__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.1rem;
}

.sr__icon svg {
  width: 2.3rem;
  height: auto;
}

.sr__icon--game svg,
.sr__icon--game-soon svg {
  width: 1.15rem;
  color: var(--ink-soft);
}

.sr__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* a game's artwork, as a small portrait */
.sr__icon--game .sr__img,
.sr__icon--game-soon .sr__img {
  width: 1.6rem;
  object-fit: cover;
  border-radius: 4px;
}

.sr__icon--card::before,
.sr__icon--page::before {
  content: "";
  width: 1.4rem;
  height: 1.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(160deg, #ffffff 30%, var(--tint));
}

.sr__icon--page::before {
  height: 1.7rem;
  background: repeating-linear-gradient(180deg, transparent 0 5px, var(--line) 5px 6px) center / 60% 60% no-repeat, #ffffff;
}

.sr__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sr__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr__sub {
  font-size: 0.875rem;
  color: var(--ink-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr__end {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sr__end .chip {
  padding: 0.3rem 0.45rem 0.32rem;
  font-size: 0.75rem;
}

.sr__price {
  min-width: 3rem;
  text-align: right;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.sr--all {
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 0.6rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--brand);
  font-weight: 650;
}

.sr--all:hover,
.sr--all[aria-selected="true"] {
  color: var(--brand);
}

.search__empty {
  padding: 0.7rem 0.7rem 0.3rem;
}

.search__none {
  margin: 0;
  font-weight: 650;
}

.search__hint {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.chip--soon {
  --fill: var(--tint);
  --fill-ink: var(--ink-soft);
}

/* phones: verdict above the price, so both fit */
@media (max-width: 30rem) {
  .sr__end {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
}

/* ---------- All boxes page ---------- */

.finder__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin: 0 0 1.4rem;
}

.finder__form .search__field {
  max-width: 40rem;
}

.finder__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2rem;
}

.chips {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend,
.finder__sort label {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.chips__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chips label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 640;
  cursor: pointer;
}

.chips input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.chips input:focus-visible + label {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--dot);
}

.dot--rip {
  --dot: var(--rip-fill);
}

.dot--toss {
  --dot: var(--toss-fill);
}

.dot--sealed {
  --dot: var(--sealed-fill);
}

.chips input:checked + label .dot {
  box-shadow: 0 0 0 2px #ffffff;
}

.finder__sort {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.finder__sort select {
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.finder__count {
  margin: 0 0 1rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.finder__note {
  max-width: 44rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--tint);
}

.tiles > li[hidden] {
  display: none;
}

.empty__title {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--ink);
}

.empty p:last-child {
  margin-bottom: 0;
}

.finder__cards {
  margin-top: 2.5rem;
}

/* ---------- set page top ---------- */

.set-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "pack" "side" "numbers";
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.set-top__pack {
  grid-area: pack;
  display: flex;
}

.set-top__side {
  grid-area: side;
}

.set-top__numbers {
  grid-area: numbers;
}

.set-top__pack .pack {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.4rem 1.25rem;
}

.pack__title {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
}

/* box price against the cards inside, as two bars */
.vs {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 0.6rem 0.9rem;
  max-width: 36rem;
  margin: 0 0 1.2rem;
}

.vs__row {
  display: contents;
}

.vs__label {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.vs__track {
  display: block;
  height: 0.85rem;
}

.vs__bar {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--line-box);
}

.vs__row--cards .vs__bar {
  background: var(--bar-win);
}

.vs__value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 30rem) {
  .vs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .vs__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.3rem 0.8rem;
  }

  .vs__track {
    grid-column: 1 / -1;
    order: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vs__bar {
    animation: vs-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transform-origin: left center;
  }

  .vs__row--cards .vs__bar {
    animation-delay: 0.12s;
  }

  @keyframes vs-grow {
    from {
      transform: scaleX(0);
    }
  }
}

/* wide screens: your numbers sit under the explanation, and the 100 boxes stay
   in view beside them while you change things */
@media (min-width: 62rem) {
  .set-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "pack side" "numbers side";
  }

  .set-top__side {
    position: sticky;
    top: 1rem;
  }
}

.odds {
  padding: 1.3rem 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.odds__title {
  margin: 0 0 0.95rem;
  font-size: 1.2rem;
}

.odds__grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  max-width: 19rem;
}

.g {
  display: block;
  aspect-ratio: 1;
  background: var(--grid-lose);
  border-radius: 3px;
}

.g--win {
  background: var(--bar-win);
}

.odds__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0.95rem 0 0.65rem;
  padding: 0;
  font-weight: 680;
}

.odds__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.odds__legend .g {
  width: 0.8rem;
}

.odds__text {
  margin: 0;
  color: var(--ink-soft);
}

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

.numbers {
  padding: 1.25rem 1.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.numbers__title {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.numbers__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem 2.5rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .numbers__row {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.field__unit {
  font-weight: 400;
  color: var(--ink-mute);
}

.field input[type="text"] {
  width: 100%;
  max-width: 12rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
}

.field input[type="text"]:disabled {
  color: var(--ink-mute);
  background: transparent;
}

.field input:focus-visible {
  outline-offset: 1px;
}

.field__hint {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.field--mode {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--mode legend {
  padding: 0;
}

.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

@media (max-width: 30rem) {
  .seg {
    display: grid;
  }
}

.seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seg label {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  color: var(--ink-soft);
}

.seg input:checked + label {
  background: var(--ink);
  color: var(--paper);
}

.seg input:focus-visible + label {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.numbers__costs {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-strong);
}

.numbers__costs > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}

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

.numbers__costs > summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.numbers__costs[open] > summary::after {
  content: "\2212";
}

.numbers__fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 1rem 1.5rem;
  margin-top: 0.9rem;
}

.numbers__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.numbers__status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* on-page links */
.jump {
  margin-top: 1.75rem;
}

.jump ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.jump a {
  display: block;
  white-space: nowrap;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 640;
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--brand);
  color: var(--ink);
}

/* the math, per box */
.math {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 3rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .math {
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  }
}

.receipt {
  padding: 1.15rem 1.3rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}

.receipt__head {
  margin: 0 0 0.45rem;
  font-weight: 720;
  font-stretch: 112%;
}

.receipt dl {
  margin: 0;
}

.receipt__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.receipt__row::after {
  content: "";
  order: 1;
  flex: 1 1 1rem;
  min-width: 1rem;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-0.3em);
}

.receipt__row dt {
  order: 0;
}

.receipt__row dd {
  order: 2;
  margin: 0;
  font-weight: 650;
  white-space: nowrap;
}

.receipt__row--total {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--ink-mute);
}

.receipt__row--total dt,
.receipt__row--total dd {
  font-weight: 800;
}

.receipt__foot {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-mute);
}

.terms {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.terms dt {
  font-weight: 720;
}

.terms dd {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  font: inherit;
  font-weight: 720;
  font-stretch: 108%;
  line-height: 1.2;
  padding: 0.8rem 1.25rem;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--brand-ink);
  background: var(--brand);
}

.button--quiet {
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  padding: 0.5rem 1rem;
  font-weight: 650;
}

.button--quiet:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--brand);
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.table th,
.table td {
  text-align: left;
  vertical-align: baseline;
  padding: 0.65rem 0.9rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.table th:last-child,
.table td:last-child {
  padding-right: 0;
}

.table thead th {
  vertical-align: bottom;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-mute);
}

.table tbody th {
  font-weight: 650;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table .sub {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-mute);
}

.table tfoot th,
.table tfoot td {
  border-bottom: 0;
  font-weight: 780;
}

.table tr.group th {
  padding-top: 1.2rem;
  font-size: 0.9375rem;
  font-weight: 740;
  font-stretch: 110%;
  border-bottom: 1.5px solid var(--ink-mute);
}

.table td .chip {
  vertical-align: middle;
}

.table--rates td:last-child {
  min-width: 18rem;
  font-size: 0.9375rem;
}

.table--rates {
  min-width: 44rem;
}

.table--narrow {
  max-width: 48rem;
}

.table--mid {
  max-width: 56rem;
}

.table .tier-freq {
  display: none;
}

.table--tiers tbody th,
.table--tiers tbody td {
  vertical-align: middle;
}

/* column headings may wrap, so narrow screens get narrower columns */
.table thead th.num {
  white-space: normal;
}

@media (max-width: 40rem) {
  .table--tiers .col-avg,
  .table--tiers .col-freq,
  .table--whatif .col-diff {
    display: none;
  }

  .table--tiers .tier-freq {
    display: block;
  }

  .table--tiers .bar-cell {
    min-width: 7rem;
  }

  .table--tiers .bar-cell__in {
    gap: 0.5rem;
  }

  .table--tiers .bar-cell .num {
    min-width: 3.4rem;
  }
}

.bar-cell {
  min-width: 13rem;
}

/* the cell stays a table cell (so its border lines up); the bar and number sit in a row inside */
.bar-cell__in {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hbar {
  display: block;
  flex: 1 1 auto;
  height: 14px;
}

.hbar__fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--bar-tier);
  border-radius: 0 4px 4px 0;
}

.bar-cell .num {
  min-width: 4.5rem;
}

/* ---------- histogram ---------- */

.chart {
  margin: 0;
}

.chart__plot {
  position: relative;
}

.hist {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font);
}

.hist--compact {
  display: none;
}

@media (max-width: 40rem) {
  .hist--wide {
    display: none;
  }

  .hist--compact {
    display: block;
  }
}

.hist .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.hist .axis {
  stroke: var(--ink-mute);
  stroke-width: 1;
}

.hist .bar--lose {
  fill: var(--bar-lose);
}

.hist .bar--win {
  fill: var(--bar-win);
}

.hist .marker {
  stroke: var(--ink);
  stroke-width: 2;
}

.hist .marker-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 740;
}

.hist .region {
  fill: var(--ink-soft);
  font-size: 12px;
  font-weight: 660;
}

.hist .tick {
  fill: var(--ink-mute);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hist .hit {
  fill: transparent;
}

.hist .hit.is-active {
  fill: var(--ink);
  fill-opacity: 0.07;
}

.hist:focus-visible {
  outline-offset: 4px;
}

/* a click or tap focuses a chart too; only show the ring for keyboard focus */
svg[data-chart]:focus:not(:focus-visible) {
  outline: none;
}

.chart__tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--tip-bg);
  color: var(--tip-ink);
  font-size: 0.875rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart figcaption {
  margin-top: 0.6rem;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.chart__table {
  margin-top: 0.8rem;
}

.chart__table summary {
  cursor: pointer;
  font-weight: 650;
}

.chart__table .table {
  max-width: 36rem;
  margin-top: 0.5rem;
}

/* ---------- box price ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1.1rem 1.75rem;
  max-width: 56rem;
  margin: 0 0 2rem;
}

.facts > div {
  padding-top: 0.6rem;
  border-top: 3px solid var(--line-strong);
}

.facts > div:first-child {
  border-top-color: var(--ink);
}

.facts dt {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0.15rem 0 0;
}

.facts__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 780;
  font-stretch: 108%;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.facts__sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.chart--price {
  max-width: 56rem;
}

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 640;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend__key {
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--line-box);
}

.legend__key--cards {
  background: var(--bar-win);
}

.pricechart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font);
}

.pricechart--compact {
  display: none;
}

@media (max-width: 40rem) {
  .pricechart--wide {
    display: none;
  }

  .pricechart--compact {
    display: block;
  }
}

.pricechart .grid {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.pricechart .axis {
  stroke: var(--ink-mute);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.pricechart .tick {
  fill: var(--ink-mute);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pricechart .line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pricechart .line--box {
  stroke: var(--line-box);
}

.pricechart .line--cards {
  stroke: var(--bar-win);
}

.pricechart .dot {
  stroke: var(--paper);
  stroke-width: 2;
}

.pricechart .dot--box {
  fill: var(--line-box);
}

.pricechart .dot--cards {
  fill: var(--bar-win);
}

.pricechart .end {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.pricechart .end-value {
  fill: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pricechart .hit {
  fill: transparent;
}

.pricechart .cross {
  display: none;
  pointer-events: none;
}

.pricechart .hit.is-active + .cross {
  display: inline;
}

.pricechart .cross line {
  stroke: var(--ink-mute);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.pricechart:focus-visible {
  outline-offset: 4px;
}

.empty {
  max-width: 44rem;
  padding: 1rem 1.2rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- spotlight: rotating boxes on the home page ---------- */

.spot {
  margin-top: 0.25rem;
}

.spot__stage {
  position: relative;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.spot__slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.25rem, 4vw, 3rem);
}

/* without JavaScript the slides stack; with it, they share one spot */
.spot__slide + .spot__slide {
  border-top: 1px solid var(--line);
}

.spot.is-ready .spot__slide {
  grid-area: 1 / 1;
  border-top: 0;
}

.spot.is-ready .spot__slide:not(.is-active) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 52rem) {
  .spot__slide {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    min-height: 26rem;
  }
}

.spot__kicker {
  margin: 0 0 0.45rem;
  font-weight: 680;
  color: var(--ink-soft);
}

.spot__title {
  margin: 0;
  font-size: clamp(3rem, 1.3rem + 6.2vw, 6.4rem);
  font-weight: 900;
  font-stretch: 122%;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.spot__title--long {
  font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.6rem);
  line-height: 0.98;
}

.spot__verdict {
  margin: 1.1rem 0 0.75rem;
}

.chip--big {
  padding: 0.45rem 0.85rem 0.5rem;
  border-radius: 10px;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  font-style: italic;
  font-weight: 860;
}

.spot__lead {
  max-width: 31rem;
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

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

.spot__ctas,
.product__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
}

.spot__ctas .button--quiet,
.product__ctas .button--quiet {
  padding: 0.8rem 1.25rem;
}

.spot__steps {
  display: grid;
  gap: 0.7rem;
  max-width: 32rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.spot__steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-soft);
  counter-increment: step;
}

.spot__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-style: italic;
  font-weight: 850;
}

.spot__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 15rem;
  isolation: isolate;
}

/* a slanted panel in the set's colour, and faint speed lines */
.spot__shape {
  position: absolute;
  inset: 6% 2% 5% 8%;
  z-index: -1;
  border-radius: 28px;
  background: var(--tint, #7c5cff);
  opacity: 0.13;
  transform: skewX(-8deg) rotate(-2deg);
}

.spot__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgb(28 22 56 / 0.05) 22px 24px);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
  mask-image: radial-gradient(closest-side, #000 35%, transparent);
}

.spot__box,
.product__box {
  display: block;
  width: min(100%, 27rem);
  --sticker-size: 1.15rem;
}

.spot__grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 20rem);
}

.spot__grid .g {
  border-radius: 4px;
}

.spot__gridnote {
  margin: 0.9rem 0 0;
  font-weight: 680;
  color: var(--ink-soft);
}

.spot__art--grid {
  align-content: center;
}

/* phones and small tablets: picture on top, smaller, and every slide centred
   in the space of the tallest one */
@media (max-width: 51.99rem) {
  .spot__slide {
    align-content: center;
  }

  .spot__art {
    order: -1;
    min-height: 0;
  }

  .spot__box {
    width: min(100%, 15rem);
  }

  .spot__box .boxshot--real {
    width: min(100%, calc(12rem * var(--ar, 1.25)));
  }

  .spot__grid {
    width: min(100%, 10rem);
    gap: 3px;
  }

  .spot__grid .g {
    border-radius: 2px;
  }

  .spot__gridnote {
    margin-top: 0.6rem;
    font-size: 0.9375rem;
    text-align: center;
  }
}

/* tabs: 01, 02, 03 with a progress line */
.spot__bar {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.spot:not(.is-ready) .spot__bar {
  display: none;
}

.spot__tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9.5rem, 1fr);
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.spot__tabs::-webkit-scrollbar {
  display: none;
}

.spot__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.8rem 0.95rem 0.85rem;
  font: inherit;
  text-align: left;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

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

.spot__tab[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.spot__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}

.spot__tab[aria-selected="true"] .spot__progress {
  animation: spot-progress var(--spot-dur, 5s) linear forwards;
}

.spot.is-paused .spot__tab[aria-selected="true"] .spot__progress {
  animation-play-state: paused;
}

.spot.is-still .spot__tab[aria-selected="true"] .spot__progress {
  animation: none;
  transform: scaleX(1);
}

@keyframes spot-progress {
  to {
    transform: scaleX(1);
  }
}

.spot__num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.spot__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 760;
  line-height: 1.2;
}

.spot__pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

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

/* phones: all three tabs fit in one row */
@media (max-width: 40rem) {
  .spot__tabs {
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .spot__tab {
    padding: 0.6rem 0.65rem 0.65rem;
  }

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

  .spot__name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .spot__pause {
    width: 2.75rem;
  }
}

/* small phones: just the number and the verdict dot; the name stays for screen readers */
@media (max-width: 30rem) {
  .spot__tab {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0.5rem;
  }

  .spot__num {
    font-size: 1rem;
    color: inherit;
  }

  .spot__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.spot__icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.spot__icon--play,
.spot__pause.is-stopped .spot__icon--pause {
  display: none;
}

.spot__pause.is-stopped .spot__icon--play {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .spot.is-ready .spot__slide.is-active .spot__box {
    animation: spot-art 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }

  .spot.is-ready .spot__slide.is-active .spot__shape {
    animation: spot-shape 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }

  .spot.is-ready .spot__slide.is-active .spot__title {
    animation: spot-wipe 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s backwards;
  }

  .spot.is-ready .spot__slide.is-active .spot__verdict .chip {
    animation: spot-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.3s backwards;
  }

  .spot.is-ready .spot__slide.is-active .spot__lead,
  .spot.is-ready .spot__slide.is-active .spot__steps,
  .spot.is-ready .spot__slide.is-active .spot__ctas {
    animation: spot-rise 0.6s ease 0.2s backwards;
  }

  .spot.is-ready .spot__slide.is-active .sticker {
    animation: spot-stick 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.6s backwards;
  }

  .spot.is-ready .spot__slide--how.is-active .spot__grid .g {
    animation: spot-cell 0.35s ease backwards;
    animation-delay: calc(var(--i) * 9ms + 0.2s);
  }
}

@keyframes spot-art {
  from {
    opacity: 0;
    transform: translateX(3rem) rotate(5deg) scale(0.94);
  }
}

@keyframes spot-shape {
  from {
    opacity: 0;
    transform: skewX(-8deg) rotate(-2deg) translateX(2rem);
  }
}

@keyframes spot-wipe {
  from {
    clip-path: inset(-0.2em 100% -0.3em -0.2em);
  }

  to {
    clip-path: inset(-0.2em -0.2em -0.3em -0.2em);
  }
}

@keyframes spot-pop {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-4deg);
  }
}

@keyframes spot-rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
}

@keyframes spot-peek {
  0% {
    transform: translateY(16px);
  }

  60% {
    transform: translateY(-7px);
  }
}

@keyframes spot-stick {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(0.6);
  }
}

@keyframes spot-cell {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* ---------- section heads with a button on the right ---------- */

/* a heading and intro with a button or switch beside them (below them on phones) */
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1.2rem;
}

.section__title {
  flex: 1 1 24rem;
  min-width: 0;
}

.section__head .section__intro {
  margin-bottom: 0;
}

/* ---------- games with art ---------- */

.scroller {
  position: relative;
}

.games {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 1fr);
  gap: 0.9rem;
  margin: 0;
  padding: 0.25rem 0.1rem 0.9rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.games::-webkit-scrollbar {
  display: none;
}

.games > li {
  scroll-snap-align: start;
  border-radius: 6px;
}

.games > li:has(.game:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.game {
  position: relative;
  display: block;
  height: 100%;
  min-height: 19rem;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  text-decoration: none;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.game:hover {
  color: #ffffff;
}

.game {
  background: linear-gradient(160deg, var(--art-a, #1f2257), var(--art-b, #3b3896));
}

.game:focus-visible {
  outline: none;
}

.game__art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.gamephoto {
  display: block;
  width: 100%;
  height: 100%;
}

/* the publisher's artwork fills the tile */
.gamephoto {
  object-fit: cover;
}

/* until the artwork is in, the game's newest box stands in the tile */
.gamephoto--box {
  box-sizing: border-box;
  padding: 10% 12% 38%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.35));
}

.gamehero__art--box .gamephoto--box {
  padding: 1.5rem 2rem;
}

.game::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 42%, rgb(8 6 24 / 0.8));
}

.game__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.6rem 1.2rem;
}

.game__name {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 900;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.45);
}

.game__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: rgb(255 255 255 / 0.92);
}

.game__status .chip {
  padding: 0.3rem 0.45rem;
  font-size: 0.75rem;
}

.game--soon .gamephoto {
  filter: saturate(0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .gamephoto {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  a.game:hover .gamephoto,
  a.game:focus-visible .gamephoto {
    transform: scale(1.07);
  }
}

.scroller__bar {
  position: relative;
  display: block;
  height: 3px;
  margin-top: 0.2rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.scroller__bar[hidden] {
  display: none;
}

.scroller__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--seen, 0.3) * 100%);
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(calc(var(--at, 0) * (1 / var(--seen, 0.3) - 1) * 100%));
}

/* ---------- price moves ---------- */

.toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.toggle[hidden] {
  display: none;
}

.toggle button {
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.toggle button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--ink);
}

.moves .section__head {
  max-width: 58rem;
}

.moves__list {
  max-width: 58rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.move {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1.3fr) auto minmax(5rem, 1fr) 4.5rem 8.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.6rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.move:hover {
  color: var(--ink);
  background: var(--tint);
}

.move__thumb {
  display: block;
  width: 2.3rem;
  height: auto;
}

/* the game's artwork until the box photo is in */
.move__thumb--art {
  height: 2.3rem;
  object-fit: cover;
  border-radius: 6px;
}

.move__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.move__name span {
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.spark {
  display: block;
  width: 100%;
  max-width: 9rem;
  height: 2.4rem;
}

.spark polyline {
  fill: none;
  stroke: var(--line-box);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.spark circle {
  fill: var(--line-box);
}

.move__price,
.move__change {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.move__price {
  font-weight: 780;
}

.move__change {
  font-weight: 700;
}

.move__change small {
  margin-left: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-mute);
}

.move--none {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mute);
}

.moves[data-range="week"] .move__change--month,
.moves[data-range="month"] .move__change--week {
  display: none;
}

@media (max-width: 40rem) {
  .move {
    grid-template-columns: 2.2rem minmax(0, 1fr) 4.2rem auto;
    grid-template-areas:
      "icon name spark price"
      "icon name spark change";
    gap: 0.1rem 0.75rem;
  }

  .move__icon {
    grid-area: icon;
  }

  .move__name {
    grid-area: name;
  }

  .move__spark {
    grid-area: spark;
  }

  .move__price {
    grid-area: price;
  }

  .move__change {
    grid-area: change;
  }

  .move .chip {
    display: none;
  }
}

/* ---------- questions ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.2rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
}

.faq__item summary:hover {
  color: var(--brand);
}

.faq__item p {
  max-width: 42rem;
  margin: 0 0 1.1rem;
  padding: 0 0.2rem;
  color: var(--ink-soft);
}

/* ---------- set page: product header ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: center;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

@media (min-width: 52rem) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.product__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 1rem;
  isolation: isolate;
}

.product__media .spot__shape {
  inset: 8% 4% 6% 6%;
}

.product__info h1 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.3rem);
}

.product__info .meta {
  margin-bottom: 0;
}

.pricebox {
  margin: 1.1rem 0 1.1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.pricebox__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.pricebox__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  margin: 0.2rem 0 0.7rem;
}

.pricebox__price {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-style: italic;
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--tint);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.pricebox__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.pricebox__facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-mute);
}

.pricebox__facts dd {
  margin: 0;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.product__verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
}

/* ---------- game page banner ---------- */

.gamehero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 18rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background: linear-gradient(120deg, var(--art-a, #1f2257) 35%, var(--art-b, #3b3896));
  border-radius: 24px;
}

/* phones: the scene fills the banner behind a dark wash */
.gamehero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
}

.gamehero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(8 6 24 / 0.1), rgb(8 6 24 / 0.55));
}

.gamehero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

/* wider screens: the scene is a panel on the right that fades into the banner */
@media (min-width: 52rem) {
  .gamehero {
    min-height: 20rem;
  }

  .gamehero__art {
    left: auto;
    width: 46%;
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
    mask-image: linear-gradient(90deg, transparent, #000 38%);
  }

  .gamehero::after {
    content: none;
  }

  .gamehero__body {
    max-width: 58%;
  }
}

.gamehero h1 {
  margin: 0 0 -0.4rem;
  color: #ffffff;
}

.gamehero__lede {
  max-width: 36rem;
  margin: 0;
  font-size: 1.1rem;
  color: rgb(255 255 255 / 0.9);
}

.gamehero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.22);
}

.gamehero__stats div {
  flex: 1 1 7.5rem;
  padding: 0.7rem 1rem;
  background: rgb(12 10 34 / 0.6);
}

.gamehero__stats dt {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.78);
}

.gamehero__stats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 760;
}

/* ---------- chase cards: the rarest pulls as cards ---------- */

.chase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

/* phones: two cards side by side instead of one long column */
@media (max-width: 40rem) {
  .chase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.6rem;
  }

  .chase__frame {
    padding: 0.55rem;
  }

  .chase__name {
    font-size: 0.9375rem;
  }

  .chase__small {
    font-size: 0.8125rem;
  }

  .chase__foot {
    flex-direction: column;
    font-size: 0.75rem;
  }
}

.chase__card--0 {
  --c1: #3a4fd8;
  --c2: #1b2263;
}

.chase__card--1 {
  --c1: #12898c;
  --c2: #0c3450;
}

.chase__card--2 {
  --c1: #8a3ad8;
  --c2: #281265;
}

.chase__card--3 {
  --c1: #c03a86;
  --c2: #38113f;
}

.chase__card--4 {
  --c1: #2e6fd6;
  --c2: #0e1e44;
}

/* each card spans four rows of the list, so names, windows and footers line up
   across a row even when one name wraps onto two lines */
.chase__card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0.55rem;
}

.chase__frame {
  position: relative;
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0.55rem;
  padding: 0.7rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.chase__name {
  align-self: end;
  padding: 0.15rem 0.25rem 0;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 820;
  font-stretch: 112%;
  line-height: 1.15;
}

.chase__window {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  border-radius: 10px;
}

.chase__window::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / 0.07) 0 7deg, transparent 7deg 20deg);
}

.chase__big {
  font-size: clamp(2.2rem, 1.6rem + 1.5vw, 2.9rem);
  /* longer numbers ("1 von 167") shrink to fit the window */
  font-size: min(2.9rem, calc(170cqi / var(--len, 4)));
  white-space: nowrap;
  font-style: italic;
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
}

.chase__small {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 650;
  opacity: 0.92;
}

.chase__about {
  grid-row: 3;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-mute);
}

.chase__foot {
  grid-row: 4;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 0.5rem;
  padding: 0.5rem 0.25rem 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* light catching the card where the mouse is */
.chase__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgb(255 255 255 / 0.55), transparent 55%);
  transition: opacity 0.2s;
}

.chase__frame.is-tilting::after {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  /* a slow silver sheen, like a foil card */
  .chase__window::after {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgb(255 255 255 / 0.32) 50%, transparent 58%);
    transform: translateX(-60%);
    animation: chase-sheen 6s ease-in-out infinite;
    animation-delay: calc(var(--d, 0) * 0.8s);
  }

  @keyframes chase-sheen {
    0%,
    65% {
      transform: translateX(-60%);
    }

    100% {
      transform: translateX(60%);
    }
  }
}

/* ---------- moving parts on boxes and cards ---------- */

.spot__box,
.product__box {
  position: relative;
}

/* a shine that sweeps over the box; on a cut-out photo it follows the box's
   outline (mask set in the HTML), on a framed photo it keeps to the frame */
.boxshot__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, rgb(255 255 255 / 0.55) 50%, transparent 57%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.boxshot--framed .boxshot__sheen {
  border-radius: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .sticker {
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  }

  .tile-link:hover .sticker,
  .is-tilting .sticker {
    transform: rotate(-14deg) scale(1.06);
  }

  .tile-link:hover .boxshot__sheen,
  .is-tilting .boxshot__sheen {
    animation: box-sheen 0.9s ease forwards;
  }

  @keyframes box-sheen {
    from {
      opacity: 1;
      background-position: 100% 0;
    }

    to {
      opacity: 1;
      background-position: 0 0;
    }
  }

  .boxphoto--clear {
    transition: filter 0.35s ease;
  }

  .tile-link:hover .boxphoto--clear,
  .is-tilting .boxphoto--clear {
    filter: drop-shadow(0 18px 16px rgb(28 22 56 / 0.2));
  }

  .tile {
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s;
  }

  .tile-link:hover .tile {
    box-shadow: 0 2px 4px rgb(28 22 56 / 0.06), 0 14px 32px rgb(28 22 56 / 0.12);
  }

  [data-tilt] {
    transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform 0.25s ease-out;
  }
}

@media print {
  .site-nav,
  .lang,
  .numbers,
  .jump,
  .notice,
  .langhint {
    display: none;
  }
}

/* ---------- boxes without prices yet ---------- */

.tile--none,
.chip--none {
  --fill: #ebeaf2;
  --fill-ink: var(--ink-soft);
}

.dot--none {
  --dot: #b9b7c9;
}

.pricebox--none .pricebox__main {
  margin-bottom: 0.5rem;
}

.pricebox__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* a box price without a verdict yet: the note sits under the facts */
.pricebox__facts + .pricebox__text {
  margin-top: 0.8rem;
}

/* estimated pull rates: a quiet note, not an alarm */
.note--estimate {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: var(--tint);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 10px 10px 0;
  max-width: 40em;
}

/* ---------- game pages with many boxes: grouped by year ---------- */

.yearjump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.yearjump a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.yearjump a:hover {
  border-color: var(--ink);
}

.yeargroup {
  margin: 2rem 0 0.9rem;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 880;
  font-stretch: 115%;
  scroll-margin-top: 5rem;
}

.yeargroup:first-of-type {
  margin-top: 0.5rem;
}

/* long lists: let the browser skip drawing tiles that are far off screen */
.tiles--many > li,
.yeargroup + .tiles > li {
  content-visibility: auto;
  contain-intrinsic-size: auto 26rem;
}

/* ---------- the games index ---------- */

.games--grid {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  overflow: visible;
  scroll-snap-type: none;
}

.game--wide {
  min-height: 16rem;
}

.section__more {
  margin: 0.6rem 0 0;
}

/* ---------- All boxes filters: game and sort menus ---------- */

.finder__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.finder__select {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.finder__select label {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.finder__select select {
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

/* coming-soon boxes on a game page: one row that scrolls sideways */
.tiles--row {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(78vw, 15rem), 15rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.2rem 0.1rem 0.9rem;
}

.tiles--row > li {
  scroll-snap-align: start;
}
