/* heartors.com: the storefront.
 *
 * One stylesheet, served from this origin, with no inline styles anywhere: the CSP allows
 * style-src 'self' and nothing else, which is worth keeping on a domain whose subdomains host
 * other people's code.
 *
 * The store commits to a dark palette rather than following the reader's theme. That is a
 * deliberate choice and not an omission: a storefront is a room you walk into, screenshots are
 * the content, and a dark room is what stops twenty bright thumbnails fighting each other. The
 * background is painted explicitly and color-scheme is declared so form controls, scrollbars and
 * focus rings come out dark too.
 */

@font-face {
  font-family: "Google Sans Flex";
  src: url("/static/gsf-latin.d9689609.woff2") format("woff2");
  font-weight: 280 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("/static/gsf-latin-ext.217b7b4e.woff2") format("woff2");
  font-weight: 280 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

:root {
  color-scheme: dark;
  --bg: #0d0c12;
  --surface: #16141d;
  --surface-2: #1e1b28;
  --surface-3: #262133;
  --line: #2e2840;
  --line-soft: rgba(245, 242, 236, 0.09);
  --ink: #f5f2ec;
  --dim: rgba(245, 242, 236, 0.62);
  --faint: rgba(245, 242, 236, 0.42);
  --heart: #f2453d;      /* the mark's red: a logo colour, not a button colour */
  --warm: #ff9c8a;       /* the "Open it" button: the same warmth, lightened until it invites */
  --warm-hi: #ffb5a6;
  --warm-ink: #2b1310;
  --violet: #8a7dff;
  --violet-soft: rgba(138, 125, 255, 0.16);
  --star: #ffc14d;
  --good: #57d08a;
  --warn: #ffb020;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1200px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* A single wash of colour behind the header, so the top of every page has some depth without
     a hero image on pages that do not deserve one. */
  background-image:
    radial-gradient(1100px 420px at 12% -8%, rgba(138, 125, 255, 0.13), transparent 62%),
    radial-gradient(900px 380px at 88% -12%, rgba(242, 69, 61, 0.11), transparent 60%);
  background-repeat: no-repeat;
}

a { color: inherit; }
/* Bold is weight 500 (George, Nov 15, 2026): browsers default these to 700. */
strong, b, th, h1, h2, h3, h4, h5, h6, dt, legend, optgroup { font-weight: 500; }
/* Every shot carries width/height attributes so the page does not jump while they load. Those
   attributes are also an intrinsic SIZE, so anything that constrains the width must free the
   height or the picture is squashed to the attribute's value, which is exactly what happened to
   the main screenshot on every listing page. height:auto here makes that impossible to repeat. */
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--violet); color: #14111c; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 500; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- header ------------------------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 12, 18, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.top-in { display: flex; align-items: center; gap: 14px; height: 62px; }

.mark {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.4px; text-decoration: none; flex: none;
}
.mark svg { width: 22px; height: 22px; flex: none; }

.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
/* The tabs' padding and type, the search box's width and the header's gap are sized together, so
   that every tab fits beside the search box on a 1280px screen. "Vikis (video wikis)" pushed "Add
   yours" off the end of the row at 12px of padding and a 260px box; "Real estate" (Oct 5, 2026)
   pushed it off by 94px at 10px, 15px type, a 200px box and an 18px gap. These values leave 25px
   to spare: after adding a tab, check `.nav` scrollWidth against clientWidth at 1280px. */
.nav a {
  padding: 7px 8px; border-radius: 999px; text-decoration: none; color: var(--dim);
  font-size: 14px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current] { color: var(--ink); background: var(--violet-soft); }

.top-find { flex: 0 1 170px; min-width: 0; }
.top-find form { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.top-find form:focus-within { border-color: rgba(138, 125, 255, 0.6); }
.top-find svg { width: 14px; height: 14px; flex: none; color: var(--faint); }
.top-find input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink);
  font: inherit; font-size: 14px;
}
.top-find input::placeholder { color: var(--faint); }
.top-find input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* The account slot is a FIXED width, wide enough for the "Sign in" button, and everything in it
   is right-aligned. A public page is the same bytes for everybody, so it is always rendered signed
   out and corrected a moment later, and without a reserved slot that correction dragged the
   search box and the whole nav sideways as it happened. The slot never changes size, so the swap
   is now a swap and not a jolt. */
.acct {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex: none; min-width: 78px; height: 32px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--violet), var(--heart));
  color: #14111c; font-size: 12px; font-weight: 500; letter-spacing: 0.2px; flex: none;
  text-decoration: none; overflow: hidden;
}
/* The photo sits ON TOP of the initials rather than beside them (both children are put in the
   same grid cell), so a picture that is slow, blocked or absent leaves the letters showing rather
   than a hole. */
.avatar > * { grid-area: 1 / 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* The account menu: on Your account (/me) and, drawn by store.js, under the header's avatar.
   George, Oct 17, 2026: "Don't wrap "Sign out"". Every line stays on one line, the menu is as
   wide as its content up to a limit, and a long name or address ends in an ellipsis. */
.acct { position: relative; }
.acct-menu {
  display: flex; flex-direction: column; width: max-content; min-width: 220px;
  max-width: min(340px, calc(100vw - 32px)); padding: 6px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.acct-menu form { margin: 0; display: block; }
.acct-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; box-shadow: var(--shadow);
}
.acct-pop[hidden] { display: none; }
.am-me, .am-row, .am-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px;
  border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit;
  font-size: 14px; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.am-me { flex-direction: column; align-items: flex-start; gap: 0; cursor: default; color: var(--ink); }
a.am-me { cursor: pointer; }
.am-row:hover, .am-item:hover, a.am-me:hover { background: rgba(255, 255, 255, 0.07); }
.am-text { display: flex; flex-direction: column; min-width: 0; }
.am-name, .am-mail {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.am-name { font-weight: 500; }
.am-mail { color: var(--dim); font-size: 13px; }
.am-pic {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--violet), var(--heart)); color: #14111c;
  font-size: 11px; font-weight: 500; overflow: hidden;
}
.am-pic > * { grid-area: 1 / 1; }
.am-pic img { width: 100%; height: 100%; object-fit: cover; }
.am-sep { height: 1px; margin: 4px 6px; background: var(--line); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05); color: var(--ink); text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn.go { background: var(--violet); border-color: transparent; color: #16121f; font-weight: 500; }
.btn.go:hover { background: #9b90ff; }
.btn.warm { background: var(--warm); border-color: transparent; color: var(--warm-ink); font-weight: 500; }
.btn.warm:hover { background: var(--warm-hi); }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.quiet { background: none; }
.btn.quiet:hover { background: rgba(255, 255, 255, 0.07); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
/* A button that is a statement rather than a control: the store's own listing says "Already open"
   where every other listing says "Open it". Quieter than a live button and not a pointer target,
   because there is nowhere for it to go. */
.btn.inert { background: var(--surface-3); border-color: var(--line); color: var(--dim); cursor: default; }
.btn.inert:hover { background: var(--surface-3); }

/* ---- hero --------------------------------------------------------------------------------- */

.hero { padding: 56px 0 12px; }
.hero h1 {
  margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; font-weight: 500;
  letter-spacing: -1.2px; max-width: 17ch;
}
.hero p { margin: 16px 0 0; color: var(--dim); font-size: 18px; max-width: 56ch; }
.hero .acts { display: flex; gap: 11px; margin-top: 24px; flex-wrap: wrap; }
.hero .stat { margin-top: 26px; color: var(--faint); font-size: 14px; }

/* ---- sections ----------------------------------------------------------------------------- */

section { padding: 34px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.sec-head h2 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.3px; }
/* The direct child: the small "See everything" beside a heading. Scoped to `>` so it does not
   also catch a link INSIDE the heading, which is a heading and not a footnote. */
.sec-head > a { margin-left: auto; color: var(--violet); text-decoration: none; font-size: 14px; }
.sec-head > a:hover { color: var(--ink); }
/* A shelf heading that goes to that shelf. It has to look exactly like a heading (a row of
   violet section titles would read as navigation rather than as structure), so it inherits
   everything and says it is a link on hover and on focus with the chevron alone, never an
   underline (George, Nov 15, 2026: "Don't add the underline on hover over links it looks bad").
   The chevron is a pseudo-element and costs no markup; it only appears on hover, so the resting
   page is unchanged. */
.sec-head h2 a { color: inherit; text-decoration: none; }
.sec-head h2 a::after {
  content: "›"; margin-left: 7px; color: var(--violet); opacity: 0;
  transition: opacity 0.13s, margin-left 0.13s;
}
.sec-head h2 a:is(:hover, :focus-visible)::after { opacity: 1; margin-left: 10px; }

/* ---- cards -------------------------------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color 0.13s, transform 0.13s;
}
.card:hover { border-color: rgba(138, 125, 255, 0.5); transform: translateY(-2px); }
.card .thumb {
  aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card .thumb.blank {
  display: grid; place-items: center; color: var(--faint); font-size: 30px; font-weight: 500;
  background: linear-gradient(150deg, var(--surface-2), var(--surface-3));
}
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
/* The address under a card's title. Quiet, and quieter than the description below it: it is there
   to identify, not to be read. */
.card-host { margin-top: -2px; color: var(--faint); font-size: 12.5px; overflow-wrap: anywhere; }
.card .tag-line { color: var(--dim); font-size: 14px; line-height: 1.45; }
.card .foot {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px;
  color: var(--faint); font-size: 13px;
}

/* A "Built on He.art" card. No screenshot, because there is nobody to take one: these arrive from
   a feed the moment their author publishes one. So the card is its text and two doors (the app,
   and a remix of it), and it is an <article> rather than an <a>, because two destinations cannot
   live inside one link. Which is also why it does not lift on hover the way the listing cards do:
   that movement is the promise that the whole tile is clickable, and here it is not. */
.card.mini { padding: 16px; }
.card.mini:hover { border-color: var(--line-soft); transform: none; }
.card.mini .body { padding: 0; gap: 6px; }
.card.mini .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 13px; }
.card.mini .host {
  margin-top: 9px; color: var(--faint); font-size: 12.5px; text-decoration: none;
  overflow-wrap: anywhere;
}
.card.mini .host:hover { color: var(--ink); }

/* The line under a shelf heading that says how big the shelf is and where the things on it come
   from. */
.shelf-note { margin: 14px 0 20px; color: var(--dim); font-size: 14px; }
.shelf-note a { color: var(--violet); }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--surface-3);
  color: var(--dim); font-size: 12px; text-decoration: none; white-space: nowrap;
}
/* .push shoves an element to the end of its flex row. A class rather than a style attribute:
   the CSP allows style-src 'self' and no inline styles at all, so every rule lives in this file. */
.push { margin-left: auto; }
a.pill:hover { background: var(--violet-soft); color: var(--ink); }
.pill.kind { background: var(--violet-soft); color: #bdb4ff; }
/* The chosen one of a set of pills that act as a switch. Filled rather than outlined, because the
   question a reader has is "which of these am I looking at" and the answer should not need a
   second glance. */
.pill.on { background: var(--violet); color: #16121f; font-weight: 500; }
a.pill.on:hover { background: #9b90ff; color: #16121f; }

/* "Group by · Category · Developer", under the hero. */
.groupby { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.groupby-label { color: var(--faint); font-size: 13px; margin-right: 2px; }

/* ---- stars -------------------------------------------------------------------------------- */

.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 15px; height: 15px; }
.stars .on { color: var(--star); }
.stars .off { color: rgba(245, 242, 236, 0.2); }
.stars.big svg { width: 21px; height: 21px; }

.rating-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }

/* ---- browse ------------------------------------------------------------------------------- */

.page-head { padding: 40px 0 6px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.7px; }
.page-head p { margin: 8px 0 0; color: var(--dim); }
.page-head .site a { color: var(--violet); overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 20px 0 26px; }
.filters .spacer { flex: 1; }
select {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 14px;
}
.tagrow { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 8px; }
.dim { color: var(--faint); }

/* Anything linked to by a #fragment has to clear the sticky header, or following "#reviews"
   lands the heading underneath it. */
[id] { scroll-margin-top: 78px; }

.empty {
  padding: 54px 0; color: var(--dim); text-align: center; border: 1px dashed var(--line);
  border-radius: var(--radius); margin: 10px 0;
}
.empty a { color: var(--violet); }

/* ---- listing page ------------------------------------------------------------------------- */

.listing-head { padding: 34px 0 0; }
.crumbs { color: var(--faint); font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.listing-head h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 500; letter-spacing: -0.9px; }
.listing-head .sub { margin: 10px 0 0; color: var(--dim); font-size: 17px; max-width: 62ch; }
/* The "Open it" row, directly under the title. Everything on this site links off it, so the
   destination host sits beside the button: a reader should know where a click goes before taking
   it, and the button's own wording is deliberately identical on every listing. */
.open { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 0; }
.open .btn { font-size: 16px; padding: 12px 26px; }
/* The address beside the button is itself a link to the same place, and it prints the whole
   address so what it says matches where it goes. It brightens on hover (never an underline,
   George, Nov 15, 2026), so it stays quieter than the button without pretending not to be
   clickable. */
.open .host {
  color: var(--dim); font-size: 14px; overflow-wrap: anywhere; text-decoration: none;
}
.open .host:hover { color: var(--ink); }

.listing-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 30px; padding: 26px 0 20px; align-items: start; }

/* ---- screenshots, clickless ------------------------------------------------------------------
 *
 * The thumbnail the pointer passes over becomes the big picture. No click, no script: every shot
 * is stacked in .stage at opacity 0 with the first one showing, and hovering the Nth thumbnail
 * turns on the Nth image.
 *
 * The thumbnails are FIRST in the source because `~` only reaches forwards; `order` puts the stage
 * back on top visually. And the rules pair :hover with :focus, so a tap, which focuses a button,
 * does the same thing on a screen with no pointer to hover with.
 */
.shots { display: flex; flex-wrap: wrap; gap: 10px; }

.shots .stage {
  order: -1; flex: 0 0 100%; position: relative; aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--surface-2); box-shadow: var(--shadow);
}
/* contain, not cover: a shot that is not 16:10 is letterboxed rather than cropped or stretched.
   Nothing here may ever change a picture's proportions. */
.shots .stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 0.12s ease;
}
.shots .stage img:first-child { opacity: 1; }

.pick {
  flex: none; width: 132px; padding: 0; border: 1px solid var(--line-soft); border-radius: 9px;
  background: var(--surface-2); overflow: hidden; cursor: pointer; line-height: 0;
}
.pick img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.pick:is(:hover, :focus) { border-color: var(--violet); }
.pick:focus { outline: none; }
.pick:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Which thumbnail is showing: the first one by default, whichever is hovered otherwise. Cosmetic
   only: a browser without :has() loses the resting highlight and nothing else. */
.pick:first-of-type { border-color: rgba(138, 125, 255, 0.55); }
.shots:has(.pick:is(:hover, :focus)) .pick:first-of-type { border-color: var(--line-soft); }

/* Any thumbnail under the pointer clears the default picture... */
.pick:is(:hover, :focus) ~ .stage img { opacity: 0; }
/* ...and these turn the matching one back on. One pair per possible shot, up to catalog.MaxShots
   (8). Written out rather than generated because a stylesheet is not a program, and eight lines
   that say exactly what they do beat a clever selector nobody can read. */
.pick:nth-of-type(1):is(:hover, :focus) ~ .stage img:nth-of-type(1),
.pick:nth-of-type(2):is(:hover, :focus) ~ .stage img:nth-of-type(2),
.pick:nth-of-type(3):is(:hover, :focus) ~ .stage img:nth-of-type(3),
.pick:nth-of-type(4):is(:hover, :focus) ~ .stage img:nth-of-type(4),
.pick:nth-of-type(5):is(:hover, :focus) ~ .stage img:nth-of-type(5),
.pick:nth-of-type(6):is(:hover, :focus) ~ .stage img:nth-of-type(6),
.pick:nth-of-type(7):is(:hover, :focus) ~ .stage img:nth-of-type(7),
.pick:nth-of-type(8):is(:hover, :focus) ~ .stage img:nth-of-type(8) { opacity: 1; }

.panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px;
}
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.7px; }
.panel .btn { width: 100%; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
/* A credit is a link to the rest of that name's work. It stays the colour of the panel's own text
   rather than turning violet: the Details list is read as facts, and a column of coloured names
   would read as navigation. Turning violet on hover is what says it is clickable (no underline,
   George, Nov 15, 2026). */
.facts dd a { text-decoration: none; }
.facts dd a:hover { color: var(--violet); }

.prose p { margin: 0 0 15px; color: rgba(245, 242, 236, 0.86); }
.prose p:last-child { margin-bottom: 0; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(245, 242, 236, 0.86); }
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet); margin-top: 10px; flex: none; }

/* ---- reviews ------------------------------------------------------------------------------ */

.score { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.score .big { font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -1.5px; }
.score .verdict { color: var(--dim); font-size: 14px; margin-top: 6px; }
.bars { flex: 1; min-width: 220px; display: grid; gap: 5px; }
.bar { display: grid; grid-template-columns: 44px 1fr 34px; gap: 10px; align-items: center;
  font-size: 12px; color: var(--faint); }
.bar .track { height: 7px; border-radius: 99px; background: rgba(245, 242, 236, 0.09); overflow: hidden; }
.bar .fill { height: 100%; background: var(--star); border-radius: 99px; }

.reviews { display: grid; gap: 14px; margin-top: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 18px;
}
.review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.review-head .who { font-weight: 500; font-size: 15px; }
.review-head .when { color: var(--faint); font-size: 13px; margin-left: auto; white-space: nowrap; }
.review p { margin: 0 0 9px; color: rgba(245, 242, 236, 0.86); overflow-wrap: anywhere; }
.review p:last-child { margin-bottom: 0; }
.review .mod { margin-top: 10px; }

/* ---- forms -------------------------------------------------------------------------------- */

.form { max-width: 640px; }
.form label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 500; }
.form .hint { color: var(--faint); font-size: 13px; margin: 4px 0 0; font-weight: 400; }
.form input[type="text"], .form input[type="url"], .form textarea, .form select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink); font: inherit; font-size: 15px; padding: 11px 13px;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--violet);
}
.form .acts { display: flex; gap: 11px; margin-top: 26px; flex-wrap: wrap; align-items: center; }

/* The rating picker is five radios drawn as stars. The inputs stay in the DOM and stay
   focusable, since a rating you cannot set with a keyboard is a rating half the people cannot set. */
.rate { display: flex; gap: 6px; margin-top: 8px; }
.rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.rate label {
  margin: 0; cursor: pointer; color: rgba(245, 242, 236, 0.22); line-height: 0;
  border-radius: 6px; padding: 3px;
}
.rate label svg { width: 30px; height: 30px; }
.rate input:checked + label, .rate label.on { color: var(--star); }
.rate input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 1px; }

.notice {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius);
  padding: 14px 16px; margin: 20px 0; color: var(--dim);
}
.notice.bad { border-color: rgba(242, 69, 61, 0.5); color: #ffbdb9; background: rgba(242, 69, 61, 0.1); }
.notice.good { border-color: rgba(87, 208, 138, 0.45); color: #b6ecca; background: rgba(87, 208, 138, 0.08); }
.notice a { color: var(--violet); }

/* ---- tables (moderation) ------------------------------------------------------------------- */

.rows { display: grid; gap: 12px; }
.row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px;
}
/* A row that IS a link (the "more like this" panel) reads as a card, not as body-text link:
   underlined sentences in a sidebar look like a mistake next to the cards above them. */
a.row { text-decoration: none; color: inherit; }
a.row:hover { border-color: rgba(138, 125, 255, 0.5); }
a.row .grow b { color: var(--ink); }
.row .grow { flex: 1; min-width: 200px; }
.row .grow b { font-weight: 500; }
.row .grow small { display: block; color: var(--faint); font-size: 13px; overflow-wrap: anywhere; }
.row form { display: inline; }

/* ---- footer ------------------------------------------------------------------------------- */

footer {
  margin-top: 40px; border-top: 1px solid var(--line-soft); padding: 30px 0 60px;
  color: var(--faint); font-size: 14px;
}
footer .cols { display: flex; gap: 30px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .grow { flex: 1; min-width: 200px; }

/* ---- narrow ------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .top-find { display: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: 36px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
  .shots .stage img { transition: none; }
}

/* ---- the 404 page ------------------------------------------------------------------------- */

.lost { padding: 64px 0 8px; max-width: 640px; }
.lost-mark { width: 58px; height: 58px; margin-bottom: 20px; }
/* The crack is the page showing through the heart, so it is painted in the background colour. */
.lost-mark .crack { stroke: var(--bg); }
.lost h1 { margin: 0; font-size: clamp(28px, 4.5vw, 40px); font-weight: 500; letter-spacing: -1px; }
.lost-why { margin: 14px 0 0; color: var(--dim); font-size: 17px; }

.lost-find {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 16px;
}
.lost-find:focus-within { border-color: rgba(138, 125, 255, 0.6); }
.lost-find svg { width: 16px; height: 16px; flex: none; color: var(--faint); }
.lost-find input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink);
  font: inherit; font-size: 16px; padding: 6px 0;
}
.lost-find input::placeholder { color: var(--faint); }
.lost-find input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.lost-shelves { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }

/* Visible to a screen reader, and to nobody else. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* A hint standing on its own, rather than under the field it explains. */
.hint.spaced { max-width: 640px; margin-top: 26px; line-height: 1.6; }

/* ---- the strip -----------------------------------------------------------------------------
   The set a reader was browsing, along the top of the listing they opened from it. It scrolls
   sideways on its own and never grows the page: the listing is the page, and this is the way back
   into the list without going back. */

.strip-wrap {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.strip-in { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.strip-in .strip-back { margin-right: 6px; }
/* The name of the list, and a link back to it. Fixed so the row scrolls under a label that stays. */
.strip-back {
  flex: none; max-width: 150px; color: var(--dim); font-size: 13px; text-decoration: none;
  line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.strip-back:hover { color: var(--ink); }
.strip {
  /* --per tiles fill the row EXACTLY, which is the whole trick: a tile is a fraction of the row
     rather than a fixed width, so the right-hand edge always falls on a tile boundary and can
     never cut one in half. Snapping does the same for the left-hand edge (every resting place is
     a whole number of tiles along), and because the scrollable distance is itself a whole number
     of tiles, the clamp at either end lands on one too. */
  --per: 8;
  --strip-gap: 10px;
  display: flex; gap: var(--strip-gap); overflow-x: auto; overflow-y: hidden; min-width: 0; flex: 1;
  scrollbar-width: none; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* No fade at the ends. It was here to say "there is more of this sideways", and it did, by
     making the first item's label unreadable. A mask is applied to the visible box, not to the
     scrolled content, so whatever sits at the edge loses its first 14px: at rest that is always
     the first name in the row ("Evergamer" arriving as "vergamer"), and while scrolling it is
     whatever happens to be passing. The row already says it continues, by cutting the next
     thumbnail off at the edge, which costs no letters. */
}
.strip::-webkit-scrollbar { display: none; }
.strip-item {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--strip-gap)) / var(--per));
  /* Without this a long name makes its tile wider than the rest and every tile after it falls off
     the grid, which is what cut the eighth one in half at the right-hand edge. A flex item's
     min-width is `auto`, meaning its MIN-CONTENT width, and a title set in white-space: nowrap has
     a min-content width of the whole unbroken title. flex-basis loses that argument. Zero lets the
     basis win, and the name ellipsises inside it as it was always meant to. */
  min-width: 0;
  scroll-snap-align: start;
  text-decoration: none; color: var(--dim);
  display: flex; flex-direction: column; gap: 5px;
}
.strip-item .thumb {
  aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.strip-item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.strip-item .thumb.blank { display: grid; place-items: center; font-size: 18px; color: var(--faint); }
.strip-name {
  font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.strip-item:hover { color: var(--ink); }
.strip-item:hover .thumb { border-color: rgba(138, 125, 255, 0.55); }
/* The one you are on. A ring rather than a colour swap, so the row still reads as pictures. */
.strip-item.on { color: var(--ink); }
.strip-item.on .thumb { border-color: var(--warm); box-shadow: 0 0 0 1px var(--warm); }

/* Fewer, wider tiles as the row narrows. Whatever the count, it is a whole number of them. */
@media (max-width: 1100px) { .strip { --per: 6; } }
@media (max-width: 860px) { .strip { --per: 5; } }
@media (max-width: 620px) {
  .strip-back { display: none; }
  .strip { --per: 4; }
}
@media (max-width: 430px) { .strip { --per: 3; } }
@media (prefers-reduced-motion: reduce) { .strip { scroll-behavior: auto; } }

/* The row's paging buttons. Hidden in the markup and shown by store.js only when the row has
   somewhere to go, so a reader without JavaScript is never offered a control that cannot work. */
.strip-page {
  flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--dim);
  display: grid; place-items: center; cursor: pointer;
}
.strip-page svg { width: 17px; height: 17px; }
.strip-page:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); border-color: rgba(138, 125, 255, 0.5); }
/* At an end: still there, so the row does not change width as you page, and plainly spent. */
.strip-page:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 620px) { .strip-page { width: 28px; height: 28px; } }

/* /docs/errors: every error code, filtered as you type (the last part of store.js). */
.errors .page-head code, .errors td.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.errors .find { width: 100%; max-width: 640px; margin: 18px 0 6px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; }
.errors .find:focus { outline: none; border-color: var(--violet); }
.errors .shown { color: var(--dim); font-size: 13px; margin: 0 0 8px; }
.errors table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 48px; }
.errors th, .errors td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.errors th { color: var(--dim); font-weight: 500; }
.errors td.code { white-space: nowrap; }
.errors td.code a { color: var(--violet); }
.errors td.from { color: var(--dim); white-space: nowrap; }
.errors tr:target td { background: var(--surface-2); }

/* ---- the cookie choice ------------------------------------------------------------------------
   consent.js puts this bar up only for visitors who must be asked first (the EU, EEA, UK and
   Switzerland, or an unknown country) and for anyone who presses Cookie settings in the footer
   (George, Oct 21, 2026: "only show them where we absolutely have to"). A bar fixed to the bottom,
   never a modal: the page scrolls and works under it, and a spacer at the end of the page keeps
   the footer reachable. The two buttons are the same button, so neither is the easy way out. */
.hc-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-2); color: var(--ink); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.9); font-size: 15px; line-height: 1.45;
}
.hc-consent[hidden] { display: none; }
.hc-consent p { margin: 0; max-width: 62ch; color: var(--ink); }
.hc-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.hc-acts { display: flex; gap: 10px; }
.hc-consent .hc-btn {
  min-width: 104px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.hc-consent .hc-btn:hover { background: rgba(255, 255, 255, 0.12); }
.hc-consent .hc-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
