/* AnyCDKey. A dark storefront: the cover art brings the colour, the interface stays ink and lilac.
   Barlow for text, Barlow Condensed for names and prices.
   Yellow is reserved for one thing: the price tag on the cheapest offer. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --page: #0f1124;
  --panel: #181b36;
  --raised: #23274d;
  --line: #2c3160;
  --ink: #eef0fb;
  --muted: #a0a6d0;
  --link: #aab3ff;
  --btn: #aab3ff;
  --btn-ink: #0f1124;
  --tag: #ffd43a;
  --tag-ink: #1b1700;
  --good: #6fd3a0;
  --bad: #ff8a80;
  --wait: #f0c060;
  --text: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --r-small: 4px;   /* inputs, buttons */
  --r-cover: 6px;   /* cover art */
  --r-panel: 12px;  /* the few big panels */
  --gutter: clamp(1rem, 3vw, 2rem);
  --hole: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-block: 1.25rem 4rem; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }
.quiet { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- header ---- */
.head-row { display: flex; align-items: center; gap: .75rem 1.5rem; padding-block: .9rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; font: 700 1.75rem/1 var(--display); letter-spacing: .01em; }
.brand svg { fill: var(--tag); stroke: var(--tag-ink); stroke-width: 1; flex: none; }
.brand svg circle { fill: var(--page); }
.search { position: relative; display: flex; flex: 1 1 18rem; max-width: 44rem; }
.search input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; padding: .55rem .9rem;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline-offset: -2px; border-radius: 8px 0 0 8px; }
.search button { font: 600 1rem var(--text); border: 0; border-radius: 0 8px 8px 0; background: var(--btn); color: var(--btn-ink); padding: 0 1.1rem; cursor: pointer; }
.search button:hover { filter: brightness(1.08); }
.suggest {
  position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: .25rem 0; list-style: none;
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgb(4 5 18 / .6);
}
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--line); }
.suggest .quiet { flex: none; font-size: .875rem; }
.cur select, .list-form select, .runform select {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem;
}
.cur { margin-left: auto; }
.kinds { background: var(--panel); border-block: 1px solid var(--line); }
.kinds-row { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.kinds-row::-webkit-scrollbar { display: none; }
.kinds a { flex: none; padding: .7rem .9rem; margin-left: -.9rem; margin-right: .9rem; color: var(--muted); text-decoration: none; font-weight: 500; }
.kinds a:hover { color: var(--ink); }
.kinds a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--link); }

/* ---- price tag ---- */
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag {
  position: relative; display: inline-flex; align-items: baseline; gap: .3em;
  background: var(--tag); color: var(--tag-ink); font: 700 1.5rem/1 var(--display);
  padding: .32em .6em .32em 1.45em; clip-path: polygon(.75em 0, 100% 0, 100% 100%, .75em 100%, 0 50%);
}
.tag::before { content: ""; position: absolute; left: .72em; top: 50%; width: .32em; height: .32em; margin-top: -.16em; border-radius: 50%; background: var(--hole); }
.tag-lead { font: 500 .6em var(--text); }

/* ---- buttons, chips ---- */
.btn {
  display: inline-block; font: 600 .9375rem/1.2 var(--text); text-decoration: none; text-align: center; cursor: pointer;
  background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn); border-radius: var(--r-small); padding: .55rem .95rem; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--link); filter: none; }
.linklike { font: inherit; color: var(--link); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip {
  font: 500 .9375rem/1.2 var(--text); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .38rem .85rem;
}
.chip:hover { border-color: var(--link); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip-empty { opacity: .45; }
.more-chips { position: relative; }
.more-chips summary { cursor: pointer; color: var(--link); font-size: .9375rem; padding: .35rem .2rem; }
.more-chips > .chips { margin-top: .4rem; }

/* ---- store marks: the store's own icon, or its initials until the site has one ---- */
.mark { flex: none; display: inline-block; width: 1.75rem; height: 1.75rem; border-radius: 6px; background: #fff; object-fit: contain; vertical-align: middle; }
.mark-letters {
  display: inline-flex; align-items: center; justify-content: center; background: var(--raised); color: var(--ink);
  outline: 1px solid var(--line); outline-offset: -1px; font: 700 .8125rem/1 var(--display); letter-spacing: .03em;
}
.who { display: flex; align-items: center; gap: .7rem; }
.who-text { min-width: 0; }

/* ---- covers and tiles ---- */
.cover {
  position: relative; display: block; aspect-ratio: 5 / 7; overflow: hidden; border-radius: var(--r-cover);
  background: var(--panel); outline: 1px solid rgb(255 255 255 / .08); outline-offset: -1px;
}
/* Game covers are 5:7 and fill the frame. Wide pictures sit inside it uncropped; the browser
   script lays a blurred copy behind them so the frame is not left empty. */
.cover img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.cover img.fill { position: absolute; inset: 0; object-fit: cover; filter: blur(14px) saturate(1.25) brightness(.6); transform: scale(1.35); }
.cover.noimg img { display: none; }
.cover.noimg::after {
  content: attr(data-title); position: absolute; inset: 0; display: flex; align-items: flex-end; padding: .75rem;
  font: 600 1.125rem/1.1 var(--display); color: var(--muted); overflow-wrap: anywhere;
}
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.75rem 1rem; }
.tile a { display: block; color: var(--ink); text-decoration: none; }
.tile a:hover .cover, .tile a:focus-visible .cover { outline: 2px solid var(--link); outline-offset: -2px; }
.tile-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin-top: .55rem; font-weight: 500; font-size: .9375rem; line-height: 1.25; overflow-wrap: anywhere;
}
.tile-price { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--muted); }
.tile-price .price { font: 700 1.1875rem/1 var(--display); color: var(--ink); }
.tile-stores { white-space: nowrap; }

/* ---- home: the shop window ---- */
.intro { padding-block: .25rem 1.25rem; }
.intro h1 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.625rem); }
.intro p { margin: .4rem 0 0; max-width: 44rem; color: var(--muted); }

.window { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1rem; }
.window-solo { grid-template-columns: minmax(0, 1fr); }
.spots { display: grid; min-width: 0; }
.spot, .hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel);
}
/* The light behind a featured panel is the cover itself, blurred. */
.glow {
  position: absolute; z-index: -1; left: -25%; top: -25%; width: 150%; height: 150%; max-width: none;
  object-fit: cover; filter: blur(56px) saturate(1.5); opacity: .5; pointer-events: none;
}
.spot::after, .hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(100deg, rgb(15 17 36 / .35) 0%, rgb(24 27 54 / .82) 55%, var(--panel) 100%);
}
.spot {
  display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "cover head" "cover prices"; gap: 1rem 1.75rem; padding: 1.5rem;
}
.spot-cover { grid-area: cover; align-self: start; }
.spot-cover .cover, .hero-cover .cover { box-shadow: 0 14px 36px rgb(4 5 18 / .55); }
.spot-head { grid-area: head; min-width: 0; }
.spot-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem); overflow-wrap: anywhere; }
.spot-head h2 a { color: var(--ink); text-decoration: none; }
.spot-head h2 a:hover { text-decoration: underline; }
.spot-head p { margin: .3rem 0 0; }
.spot-prices { grid-area: prices; min-width: 0; align-self: end; }
.spot-wait { max-width: 30rem; color: var(--muted); }
.rungs { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.rungs li {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  padding: .5rem 0; border-top: 1px solid rgb(255 255 255 / .12);
}
/* Prices rise down the list: each rung starts a step further in. */
.rungs li:nth-child(2) { margin-left: .75rem; }
.rungs li:nth-child(3) { margin-left: 1.5rem; }
.rungs li:nth-child(4) { margin-left: 2.25rem; }
.rung-store { display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 600; }
.rung-store .mark { width: 1.5rem; height: 1.5rem; border-radius: 5px; font-size: .75rem; }
.rung-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rung-what { color: var(--muted); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rungs .price { font: 700 1.3125rem/1 var(--display); }
.rungs .tag { font-size: 1.625rem; }
.rungs .tag .price { font-size: 1em; }

.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: .5rem; }
.pick {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .75rem; align-items: center; height: 100%;
  padding: .45rem .75rem .45rem .45rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none;
}
.pick:hover { border-color: var(--link); }
.pick[aria-current="true"] { background: var(--raised); border-color: var(--link); }
.pick .cover { border-radius: 4px; }
.pick-title { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-price { display: block; margin-top: .1rem; font-size: .8125rem; color: var(--muted); }
.pick-price .price { font: 700 1.0625rem/1 var(--display); color: var(--ink); }

.aisles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.aisles a { display: block; padding: .7rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.aisles a:hover { border-color: var(--link); }
.aisle-name { display: block; font: 600 1.3125rem/1.1 var(--display); }
.aisle-n { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--muted); }

.shelf { margin-top: 2.75rem; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.shelf-head a { flex: none; font-size: .9375rem; }
.rack { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.store-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.store-row li { display: flex; align-items: center; gap: .55rem; padding: .35rem .95rem .35rem .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .9375rem; }
.store-row .mark { width: 1.625rem; height: 1.625rem; border-radius: 50%; font-size: .75rem; }

/* ---- listing ---- */
.list-head { margin-bottom: 1.25rem; }
.list-head p { margin: .35rem 0 0; }
.list-head h1 .quiet { font: 500 1.125rem var(--text); }
.browse { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.browse-solo { grid-template-columns: minmax(0, 1fr); }
.browse-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1rem 1.1rem; }
.facet + .facet { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.facet h2 { font: 500 .8125rem/1.3 var(--text); color: var(--muted); letter-spacing: 0; margin-bottom: .35rem; }
.facet ul { list-style: none; margin: 0; padding: 0; }
.facet a { display: block; margin-inline: -.6rem; padding: .3rem .6rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.facet a:hover { background: var(--raised); }
.facet a[aria-current="true"] { background: var(--raised); box-shadow: inset 3px 0 0 var(--link); font-weight: 600; }
.browse-main { min-width: 0; }
.list-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.list-bar p { margin: 0; }
.list-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9375rem; }
.js [data-nojs] { display: none; }
.pages { margin-top: 2.5rem; }
.pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pages a, .pages .here { display: block; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--r-small); text-decoration: none; color: var(--ink); }
.pages a:hover { border-color: var(--link); }
.pages .here { background: var(--ink); color: var(--page); border-color: var(--ink); }
.pages .gap { color: var(--muted); padding-inline: .25rem; }
.empty { padding: 1.25rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--r-panel); color: var(--muted); max-width: 46rem; }

/* ---- product ---- */
.crumbs { display: flex; gap: .5rem; font-size: .9375rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.hero {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "cover title" "cover facts"; gap: 1.25rem 1.75rem; padding: 1.5rem;
}
.hero-cover { grid-area: cover; align-self: start; }
.hero-title { grid-area: title; min-width: 0; }
.hero-title h1 { overflow-wrap: anywhere; }
.lowest { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .9rem 0 0; }
.lowest .tag { font-size: 2rem; }
.btn-go { font-size: 1.0625rem; padding: .7rem 1.25rem; }
.facts { grid-area: facts; align-self: end; display: flex; flex-wrap: wrap; gap: .9rem 2.25rem; margin: 0; font-size: .9375rem; }
.facts dt { color: var(--muted); font-size: .8125rem; }
.facts dd { margin: 0; font-weight: 500; }

.board { --hole: var(--panel); margin-top: 1rem; padding: 1.25rem 1.5rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.board h2 { font-size: 1.375rem; margin-bottom: .9rem; }
.product > .empty { margin-top: 1rem; }
.filters { display: grid; gap: .65rem; margin-bottom: .75rem; }
.filter { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.filter-name { color: var(--muted); font-size: .9375rem; padding-top: .4rem; }
.also-global { font-size: .9375rem; margin-left: 5.75rem; }
.offers-wrap { overflow-x: auto; }
.offers { width: 100%; border-collapse: collapse; }
.offers th, .offers td { padding: .6rem .75rem .6rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.offers thead th { font-weight: 500; font-size: .8125rem; color: var(--muted); padding-block: .4rem; }
.offers tbody th { font-weight: 600; }
.offers tbody tr:last-child th, .offers tbody tr:last-child td { border-bottom: 0; }
.offers .num { text-align: right; }
.offers .go { text-align: right; padding-right: 0; width: 1%; }
.offers .meta-line { display: none; }
.offers .cell-price .price { font: 700 1.375rem/1 var(--display); }
.offers tr.best .cell-price {
  position: relative; display: inline-flex; background: var(--tag); color: var(--tag-ink);
  padding: .3rem .6rem .3rem 1.75rem; clip-path: polygon(.9rem 0, 100% 0, 100% 100%, .9rem 100%, 0 50%);
}
.offers tr.best .cell-price::before { content: ""; position: absolute; left: .85rem; top: 50%; width: .4rem; height: .4rem; margin-top: -.2rem; border-radius: 50%; background: var(--hole); }
.checked { margin: .9rem 0 0; font-size: .875rem; }

.more { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 2rem 3.5rem; align-items: start; margin-top: 2.75rem; }
.more-solo { grid-template-columns: minmax(0, 46rem); }
.more-side { display: grid; gap: 2rem; min-width: 0; }
.prose { max-width: 46rem; min-width: 0; }
.prose h2 { margin-bottom: .75rem; }
.prose h3 { margin: 1.5rem 0 .4rem; }
.prose h4 { margin: 1.25rem 0 .3rem; font: 600 1rem var(--text); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .25rem 0; }
.reqs { font-size: .9375rem; }
.critic h2 { margin-bottom: .75rem; }
.critic iframe { border: 0; width: 100%; max-width: 30rem; display: block; }
.product .shelf .rack { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }

/* ---- plain pages and tables ---- */
.page { max-width: 46rem; }
.page h1 { margin-bottom: 1rem; }
.page h2 { margin: 2rem 0 .5rem; }
.notfound p { max-width: 36rem; }
.plain { border-collapse: collapse; width: 100%; max-width: 56rem; }
.plain th, .plain td { text-align: left; padding: .6rem 1rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain thead th { font-weight: 500; font-size: .8125rem; color: var(--muted); }
.plain tbody th { font-weight: 600; }
.plain .num { text-align: right; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--panel); padding-block: 1.75rem; font-size: .9375rem; color: var(--muted); }
.foot p { max-width: 52rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot nav + nav { margin-top: .6rem; }

/* ---- owner's pages ---- */
.admin-block { margin-top: 2.75rem; }
.admin-block h2 { margin-bottom: .75rem; }
.admin { max-width: none; font-size: .9375rem; }
.admin.narrow { max-width: 24rem; }
.state { font-weight: 600; white-space: nowrap; }
.state-ok { color: var(--good); }
.state-bad { color: var(--bad); }
.state-wait, .state-off { color: var(--wait); }
.notice { padding: .75rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--link); border-radius: var(--r-small); background: var(--panel); max-width: 56rem; }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .4rem .75rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line); }
.tpl > label:first-child { grid-column: 1 / -1; font-weight: 600; }
.tpl input[name="link_template"] { font: .9375rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-small); padding: .5rem .6rem; min-width: 0; }
.tpl .check { font-size: .9375rem; white-space: nowrap; }
.tpl p { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; }
.logo-form { display: grid; grid-template-columns: auto minmax(8rem, 14rem) minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.logo-form label { font-weight: 600; }
.logo-form input { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-small); padding: .45rem .6rem; min-width: 0; }
.runform { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: 1rem; }
.inline { display: flex; gap: .4rem; flex-wrap: wrap; }
code { font: .875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* ---- narrower screens ---- */
@media (max-width: 68rem) {
  .rack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home .rack .tile:nth-child(n+9) { display: none; }
  .window { grid-template-columns: minmax(0, 1fr); }
  /* The other featured games become a strip above the big panel. */
  .picks { order: -1; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .picks::-webkit-scrollbar { display: none; }
  .picks li { flex: 0 0 auto; max-width: 14rem; }
  .aisles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 56rem) {
  .browse { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  /* The side panel turns into rows of chips that scroll sideways. */
  .browse-side { background: none; border: 0; border-radius: 0; padding: 0; min-width: 0; }
  .facet + .facet { margin-top: .6rem; padding-top: 0; border-top: 0; }
  .facet h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .facet ul { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .facet ul::-webkit-scrollbar { display: none; }
  .facet a { margin: 0; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .38rem .85rem; }
  .facet a:hover { background: none; border-color: var(--link); }
  .facet a[aria-current="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); box-shadow: none; font-weight: 500; }
  .tpl { grid-template-columns: minmax(0, 1fr); }
  .logo-form { grid-template-columns: auto minmax(0, 1fr); }
  .logo-form input { grid-column: 1 / -1; }
  .logo-form .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 42rem) {
  body { font-size: 1rem; }
  main { padding-top: 1rem; }
  .cur { margin-left: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .head-row { justify-content: space-between; padding-block: .7rem; }
  .intro p { font-size: .9375rem; }

  .spot { grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "cover head" "prices prices"; gap: 1rem; padding: 1rem; }
  .spot-head p { font-size: .9375rem; }
  .rungs li { grid-template-columns: minmax(0, 1fr) auto; }
  .rung-what { display: none; }
  .rungs li:nth-child(n) { margin-left: 0; }
  .spot-prices .btn { display: block; }
  .aisles a { padding: .55rem .7rem; }
  .aisle-name { font-size: 1.125rem; }

  /* Shelves on the home page scroll sideways like a rack; lists stay a two-column grid. */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .85rem; }
  .home .rack, .product .shelf .rack {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .home .rack::-webkit-scrollbar, .product .shelf .rack::-webkit-scrollbar { display: none; }
  .home .rack .tile, .product .shelf .rack .tile { flex: 0 0 8.75rem; scroll-snap-align: start; }
  .home .rack .tile:nth-child(n) { display: block; }
  .shelf { margin-top: 2.25rem; }

  .hero { grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "cover title" "facts facts"; gap: 1rem; padding: 1rem; }
  .hero-title h1 { font-size: 1.75rem; }
  .lowest { margin-top: .6rem; }
  .lowest .tag { font-size: 1.625rem; }
  .facts { gap: .75rem 1.5rem; }
  .board { padding: 1rem 1rem .75rem; }
  .filter { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .filter-name { padding-top: 0; }
  .also-global { margin-left: 0; }

  /* Offers: each row becomes store + details on the left, price and button on the right. */
  .offers, .offers tbody { display: block; }
  .offers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .offers tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .6rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
  .offers tbody tr:last-child { border-bottom: 0; }
  .offers th, .offers td { border: 0; padding: 0; width: auto; }
  .offers td.meta { display: none; }
  .offers .meta-line { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
  .offers .cell-price .price { font-size: 1.25rem; }
  .btn { padding: .5rem .7rem; }
}
@media print {
  .head, .foot, .filters, .go, .critic, .glow, .picks, .aisles { display: none; }
}
