/*
 * The public pages (epic 4, T4.1; the second look, 2026-11-08, research/site-design.md: "Accent light"). The owner:
 * beautiful, interesting, high-tech, little animations, simple, no complex patterns, not heavy. So: white paper and
 * system fonts; the site's colour as the light of the page (a wash at the top, the glow of the two actions, the
 * rings); one dark console for the code; every motion is CSS, composited, finite, and stopped for a visitor who asks
 * for less. Phone first (mobile.md §1). The site's colour arrives as --accent, --on-accent (text on it) and
 * --accent-text (it as text on the page), all three from layout.ts, and nowhere else: another look is one setting.
 * A site with a page colour of its own (2026-11-21) brings the palette below as variables too, dark or light, each
 * text colour already held readable on it (theme.ts): so no rule here names white or black for a surface, only
 * --page, --card and their kin. What may move behind the page is at the end of this file.
 */
:root {
  color-scheme: light;
  --ink: #0f1419;
  --ink-2: #334155;
  --muted: #5b6670;
  --line: #e4e8ee;
  --soft: #f3f5f8;
  --page: #f8f9fb;
  --card: #fff;
  --card-line: rgb(15 20 25 / 6%);
  --night: #0b1220;
  --night-2: #141e33;
  --night-line: #26324c;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 20 25 / 6%), 0 10px 26px -16px rgb(15 20 25 / 24%);
  --shadow-up: 0 2px 6px rgb(15 20 25 / 7%), 0 22px 44px -18px rgb(15 20 25 / 34%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  /* A site's fonts (fonts.ts) take the place of these two when it has chosen some. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font);
  /* What a card does under a pointer or a finger: how far it moves, how much it grows, how it turns (data-hover). */
  --move: 0 -4px;
  --grow: 1;
  --turn: none;
  /* The accent's tints where the browser can mix colours; plain greys where it cannot. */
  --tint: var(--soft);
  --tint-line: var(--line);
  --glow: transparent;
  --accent-top: var(--accent);
}

@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --tint: color-mix(in oklab, var(--accent) 8%, var(--card));
    --tint-line: color-mix(in oklab, var(--accent) 24%, var(--card));
    --glow: color-mix(in oklab, var(--accent) 45%, transparent);
    --accent-top: color-mix(in oklab, var(--accent) 88%, #fff);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* The scrollbar's room is kept while the item popup holds the page still, so nothing under it moves sideways. */
  scrollbar-gutter: stable;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  /* A line of the site's colour across the very top, and under it the wash: the colour, faint. Painted once. */
  border-top: 3px solid var(--accent);
  background: radial-gradient(120% 420px at 50% -140px, var(--tint-line), transparent 70%) no-repeat, var(--page);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* One long word in a title or a review must not make the page scroll sideways. */
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
.site-title {
  font-family: var(--font-heading);
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}


ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

/* ---- The frame ---- */

/* The mark and the name, under the line of the site's colour: the site says whose it is at once. */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px 6px;
  view-transition-name: header;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* A long name gives way to the search line, never the other way round. */
.site-title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The search: one slim line at the end of the header's row, for a code or a name (the owner, 2026-11-22: "not the big
   thick block; maybe not even a full row"). It grows under the finger on a phone, the site's name giving it room. */
.site-search {
  display: flex;
  flex: 1 1 150px;
  max-width: 320px;
  min-width: 128px;
  height: 40px;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.site-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint-line);
}

.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 14px;
  background: none;
  border: 0;
  outline: 0;
  /* 16 px: a smaller field makes an iPhone zoom the page when it is tapped. */
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.site-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.site-search button {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: linear-gradient(180deg, var(--accent-top), var(--accent));
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* The glass, in the colour that reads on the site's own: drawn once, as a mask. */
.site-search button::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
  background: var(--on-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 639px) {
  .site-header:focus-within .site-title > span:last-child {
    display: none;
  }

  .site-header:focus-within .site-search {
    max-width: none;
  }
}

/* The site's mark until it has a logo of its own: its first letter on its colour, as on the tab's icon. */
.site-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(140deg, var(--accent-top), var(--accent));
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px var(--glow);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px 40px;
}

main > section,
main > .tabs,
main > .thumbs,
main > .paging {
  margin-top: 30px;
}

/* The foot of every page: what the site is, its pages, where its videos are, how it earns, whose it is. A site may give
   it a colour or a picture of its own, with the texts that read on it (dress.ts). */
.site-footer {
  margin-top: 12px;
  padding: 26px 16px 30px;
  background: var(--card);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-in {
  display: grid;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto 18px;
}

.footer-brand p {
  max-width: 320px;
  margin: 8px 0 0;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-links a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-text);
}

.site-footer .site-title:hover {
  color: inherit;
}

.disclosure,
.rights {
  max-width: 1040px;
  margin: 0 auto;
}

.disclosure {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rights {
  margin-top: 6px;
}

/* What a page is, for whoever reads it without eyes: a screen reader, a search engine, an AI. Not drawn. */
.unseen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* A page of words: About, Contact, Terms, Privacy. */
main > p,
main > h2 {
  max-width: 680px;
}

main > h1 + p {
  margin-top: 12px;
}

main > h2 {
  margin-top: 26px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-weight: 600;
}

.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
}

.back {
  margin-top: 22px;
  font-weight: 600;
}

main > .empty,
main > .notice {
  max-width: none;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff4dc;
  border: 1px solid #f6dfae;
  border-radius: 12px;
  color: #744400;
  font-size: 14px;
}

.empty {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

/* ---- Sections and cards ---- */

/* A live dot before a section's name: these are the items of the videos now. */
.featured h2,
.carousel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured h2::before,
.carousel h2::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--tint);
}

/* A sign of its own in the dot's place (icons.ts, icons.css). */
h2.signed::before {
  content: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 10px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 8px;
}

.card {
  position: relative;
  min-width: 0;
  /* Each its own property, never `transform`: the scroll's own animations hold that one. */
  transition: translate 0.24s var(--ease), scale 0.24s var(--ease), rotate 0.24s var(--ease);
}

.card > a {
  position: relative;
  display: block;
  text-decoration: none;
}

/* The code said in the video, on the photo's corner, in the type of a terminal. */
.card-code {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 9px;
  background: var(--code-bg, var(--night));
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 55%);
  color: var(--code-ink, #fff);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.thumbs .card-code {
  top: 5px;
  left: 5px;
  padding: 1px 7px;
  font-size: 12px;
}

/* A way to pass the item on, in the photo's other corner: shown once the script is there to act on it. */
.card-share {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: var(--share-bg, var(--night));
  border: 0;
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 55%);
  color: var(--share-ink, #fff);
  font-size: 11px;
  font-weight: 700;
  line-height: 28px;
  cursor: pointer;
}

/* The sign, in the colour the site gave it: drawn once, as a mask. */
.card-share::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentcolor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3m0 0L8 7m4-4 4 4M5 12v7h14v-7'/%3E%3C/svg%3E") center / 15px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3m0 0L8 7m4-4 4 4M5 12v7h14v-7'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Once it says "Copied", the words stand where the sign was. */
.card-share:not(:empty)::before {
  content: none;
}

.grid > .card .card-share,
.strip > .card .card-share {
  top: 14px;
  right: 14px;
}

/* A photo still on its way shows a faint tint of the site, not a grey hole. */
.card img,
.photo-missing {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--tint), var(--soft));
  border-radius: 12px;
}

/* A clip over its photo (site.js; the owner, 2026-11-25): the same square, shown once it really plays. */
.card > a > .clip,
.shot > .clip {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.clip.on {
  opacity: 1;
}

.card > a > .clip.on,
.shot > .clip.on {
  opacity: 1;
}

/* A section's card is a little panel of its own: photo, name, tags, and the store's button at its foot. A site that
   dresses its cards (data-cards; dress.ts) has the list's as panels too, so they are one and the same card everywhere.
   Its colour, how see-through it is, its line and its shadow are the site's when it set them. */
.grid > .card,
.strip > .card,
html[data-cards] .thumbs > .card {
  display: flex;
  flex-direction: column;
  padding: 7px 7px 9px;
  background: var(--card-bg, var(--card));
  border: var(--card-border, 1px solid var(--card-line));
  border-radius: 18px;
  box-shadow: var(--card-shadow, var(--shadow));
}

html[data-cards] .thumbs > .card {
  padding: 5px 5px 8px;
  border-radius: 15px;
}

html[data-cards] .thumbs > .card .card-title,
html[data-cards] .thumbs > .card .tags {
  padding: 0 3px;
}

html[data-cards] .thumbs > .card .card-share {
  top: 11px;
  right: 11px;
}

/* The deeper shadow of a lifted card is laid on and faded in, never animated itself (research §2.2). */
.grid > .card::after,
.strip > .card::after,
html[data-cards] .thumbs > .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--card-shadow-up, var(--shadow-up));
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}

/* What a card casts (look.ts, CARD_SHADOWS). Floating: three shadows, close, middle and far, and a light along its top
   edge, so it lies off the page. Glow: the light of the site's colour under it. */
html[data-shadow="none"] {
  --card-shadow: none;
  --card-shadow-up: none;
}

/* Drawn in under the card at its sides: a shadow must not fall across the next card of the row. */
html[data-shadow="floating"] {
  --card-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 2px 4px rgb(15 20 25 / 12%), 0 16px 22px -14px rgb(15 20 25 / 34%), 0 36px 38px -24px rgb(15 20 25 / 46%);
  --card-shadow-up: 0 6px 10px rgb(15 20 25 / 14%), 0 28px 34px -18px rgb(15 20 25 / 40%), 0 54px 52px -32px rgb(15 20 25 / 54%);
}

html[data-shadow="floating"][data-scheme="dark"] {
  --card-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 2px 5px rgb(0 0 0 / 46%), 0 18px 24px -14px rgb(0 0 0 / 80%), 0 38px 42px -24px rgb(0 0 0);
  --card-shadow-up: 0 8px 14px rgb(0 0 0 / 50%), 0 32px 38px -18px rgb(0 0 0 / 88%), 0 58px 56px -30px rgb(0 0 0);
}

html[data-shadow="glow"] {
  --card-shadow: 0 0 0 1px var(--tint-line), 0 10px 26px -12px var(--glow);
  --card-shadow-up: 0 0 0 1px var(--accent), 0 16px 36px -10px var(--glow);
}

html:is([data-shadow="floating"], [data-shadow="glow"], [data-hover="rise"], [data-hover="tilt"], [data-hover="glow"]) .strip {
  --room: 24px;
  --room-under: 50px;
}

.card-title {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.grid > .card .card-title,
.strip > .card .card-title {
  padding: 0 3px;
}

.thumbs .card-title {
  font-size: 13px;
}

/* A carousel: one row a thumb slides, each card stopping at the edge, the edge fading to say there is more. */
.carousel {
  position: relative;
  /* Its own block: the room its row keeps and gives back stays inside it, and the line under it where it was. */
  display: flow-root;
}

/* A carousel cuts off what leaves it, so it keeps room on every side for a card that rises, glows or casts a deep
   shadow, and gives that room back by its margins: nothing around it moves. */
.strip {
  --room: 14px;
  --room-under: 16px;
  display: grid;
  grid-auto-columns: 42%;
  grid-auto-flow: column;
  gap: 10px;
  margin: calc(2px - var(--room)) -16px calc(14px - var(--room-under));
  padding: var(--room) 16px var(--room-under);
  overflow-x: auto;
  scroll-padding: 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

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

.strip > .card {
  scroll-snap-align: start;
}

.card-foot {
  margin-top: auto;
  padding-top: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.grid > .card .tags,
.strip > .card .tags {
  padding: 0 3px;
}

.tag {
  padding: 1px 8px;
  background: var(--tag, var(--tint));
  border: 1px solid var(--tag, var(--tint-line));
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.tag[style] {
  color: var(--on-tag);
}

/* ---- The store's buttons: a card's, and the item page's: the colour and the light, nothing else has both ---- */

.card-buy,
.buy-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent-top), var(--accent));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 10px 22px -12px var(--glow);
  color: var(--on-accent);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s var(--ease);
}

.card-buy {
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 14px;
}

/* A carousel's card is narrower on a phone: the store's words keep one line, the arrow gives way to them. */
.strip .card-buy {
  padding-right: 6px;
  padding-left: 6px;
  font-size: 13px;
}

.strip .card-buy::after {
  content: none;
}

/* The arrow says "to the store"; under a pointer it leans that way. */
.card-buy::after,
.buy-button::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

/* A sheen that crosses the button once when a pointer comes to it (research §2.4: never a loop). */
.card-buy::before,
.buy-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgb(255 255 255 / 30%) 50%, transparent 75%);
  transform: translateX(-130%);
  pointer-events: none;
}

/* The store's official badge, as it is: not the photo square every other image of a card is. */
.card .card-buy .badge {
  width: auto;
  height: 18px;
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
}

/* ---- Tabs: a row a thumb can slide ---- */

.tabs {
  display: flex;
  gap: 6px;
  margin-right: -16px;
  margin-left: -16px;
  padding: 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  view-transition-name: tabs;
}

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

.tabs a,
.subcategories a {
  flex: none;
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

/* The tab you are on: a ring of the site's colour and no fill, so its small text reads whatever the colour. */
.tabs a[aria-current] {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 16px -10px var(--glow);
  font-weight: 700;
}

/* A tab with subcategories says so; they open as a row of chips under the tabs (the owner, 2026-11-25). */
.tab-more::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border: solid currentcolor;
  border-width: 0 1.8px 1.8px 0;
  opacity: 0.55;
  transform: rotate(45deg);
}

.subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.subcategories a[aria-current="page"] {
  background: var(--tint);
  border-color: var(--accent);
  font-weight: 700;
}

.paging {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.paging a {
  padding: 9px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}

.all-items .paging {
  margin-top: 18px;
}

/* ---- The item ---- */

.breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

/* A swipe, without a script. The next photo shows at the edge, so a thumb knows there is more. */
.gallery {
  display: flex;
  gap: 8px;
  margin-right: -16px;
  margin-left: -16px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}

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

.gallery img,
.gallery .photo-missing {
  flex: 0 0 86%;
  width: 86%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--tint), var(--soft));
  border-radius: 18px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.gallery img:only-child {
  flex-basis: 100%;
  width: 100%;
}

/* A photo with a clip has a frame, which takes the photo's place in the row. */
.gallery .shot {
  position: relative;
  flex: 0 0 86%;
  scroll-snap-align: start;
}

.gallery .shot:only-child {
  flex-basis: 100%;
}

.gallery .shot img {
  width: 100%;
}

.shot > .clip {
  border-radius: 18px;
}

.item-info h1 {
  margin-top: 16px;
}

/* The code to say in a comment, in the type of a terminal. */
.code {
  display: inline-block;
  margin: 10px 0 0;
  padding: 2px 10px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: 8px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.buy {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.buy-button {
  padding: 16px;
  border-radius: 14px;
  font-size: 19px;
}

/* A second store is there, and is not what the page is asking for. */
.buy-button + .buy-button {
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--ink);
}

/* Where the button leads, said plainly: the store's own address, in the type of a terminal. */
.goes {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.goes b {
  color: var(--ink-2);
  font-family: var(--mono);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.share {
  padding: 7px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.button-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.item-more {
  margin-top: 24px;
}

.item-more > * + * {
  margin-top: 22px;
}

/* The video: a dark screen, the play sign in the site's colour, as the code's console on the home page. */
.video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 18px;
  background: linear-gradient(160deg, var(--night-2), var(--night) 70%);
  border-radius: 18px;
  box-shadow: 0 18px 36px -24px rgb(2 6 23 / 70%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.video::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--accent-top);
}

.item-more iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
}

.review p,
.intro p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.pros,
.cons {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pros h2,
.cons h2 {
  margin-bottom: 6px;
  font-size: 16px;
}

.pros li,
.cons li {
  position: relative;
  padding: 3px 0 3px 28px;
  overflow-wrap: anywhere;
}

.pros li::before,
.cons li::before {
  position: absolute;
  top: 5px;
  left: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pros li::before {
  content: "+";
  background: var(--tint);
  color: var(--accent-text);
}

.cons li::before {
  content: "−";
  background: var(--soft);
  color: var(--muted);
}

.intro {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Tap a photo: the whole of it (site.js). */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #000;
  border: 0;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: #000;
}

.lightbox img,
.lightbox video {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* A clip's own controls take its taps: a cross closes it. */
.lightbox .popup-close {
  position: fixed;
  top: 0;
  right: 12px;
  color: var(--ink);
}

/* ---- An item over the page it was opened from (site.js; the owner, 2026-11-08): the whole screen on a phone, a
   window on a computer, the page dimmed and still behind it ---- */

html:has(.popup[open]) {
  overflow: hidden;
}

.popup {
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--page);
  border: 0;
  color: var(--ink);
}

.popup::backdrop {
  background: rgb(11 18 32 / 55%);
}

/* The cross stays in its corner while the item scrolls under it. */
.popup-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding: 0 12px;
}

.popup-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 12px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.popup-body {
  padding: 16px 16px 32px;
}

.popup-body > section {
  margin-top: 30px;
}

/* ---- Wider than a phone ---- */

@media (min-width: 640px) {
  .site-header {
    padding-top: 18px;
  }

  main {
    padding-top: 14px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
  }

  .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px 12px;
  }

  .strip {
    --room-under: 18px;
    grid-auto-columns: 210px;
    gap: 16px;
  }

  .card-title {
    font-size: 15px;
  }

  .thumbs .card-title {
    font-size: 14px;
  }

  .footer-in {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }

  .footer-links,
  .footer-social {
    display: grid;
    gap: 6px;
    justify-items: start;
  }

  .popup {
    width: min(1000px, 100% - 48px);
    height: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    border-radius: 22px;
    box-shadow: 0 30px 80px -24px rgb(2 6 23 / 50%);
  }

  .popup-body {
    padding: 24px 24px 32px;
  }

  .tabs {
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
    padding: 2px 0;
    overflow: visible;
  }

  h1 {
    font-size: 30px;
  }
}

@media (min-width: 900px) {
  /* Photos on the left, the button beside them and staying in view: on a big screen too, no scrolling to buy. */
  .item {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0 40px;
    align-items: start;
  }

  .item-info {
    position: sticky;
    top: 20px;
    /* A column of its own for the whole item: the words under the photos stay left of it, so nothing slides under
       it while it holds its place (the owner's screenshots, 2026-11-08: the review ran under the button). */
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .item-info h1 {
    margin-top: 0;
  }

  /* In the popup the name keeps clear of the cross in the corner. */
  .popup .item-info h1 {
    padding-right: 48px;
  }

  .item-more {
    grid-column: 1;
    grid-row: 2;
  }

  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .gallery img,
  .gallery .photo-missing {
    width: 100%;
    cursor: zoom-in;
  }

  .gallery > img:first-child,
  .gallery > .shot:first-child {
    grid-column: 1 / -1;
  }

  .buy-button {
    padding: 17px;
  }
}

/* ---- Motion: CSS only, transform and opacity, finite; stopped for a visitor who asks for less (§2.3) ---- */

/* Transform alone: the dot's ring is its own, so naming it here would keep these beats on the main thread. */
@keyframes live {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sheen {
  to {
    transform: translateX(130%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* From where the card stands and back there: it comes to rest without a jump. */
@keyframes bob {
  to {
    transform: translateY(-8px);
  }
}

@keyframes swing {
  25% {
    transform: rotate(-2.2deg);
  }
  60% {
    transform: rotate(1.8deg);
  }
  85% {
    transform: rotate(-0.8deg);
  }
}

@keyframes edge {
  entry 0% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  entry 100% {
    opacity: 1;
    transform: none;
  }
  exit 0% {
    opacity: 1;
    transform: none;
  }
  exit 100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

@keyframes progress {
  to {
    transform: none;
  }
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes dim-in {
  from {
    opacity: 0;
  }
}

/* Every tap target answers the finger. */
.card-buy:active,
.buy-button:active,
.site-search button:active,
.card-share:active,
.paging a:active,
.tabs a:active,
.share:active,
.popup-close:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: no-preference) {
  /* The dot beats three times when the page opens, then rests: under five seconds (WCAG 2.2.2). */
  .featured h2::before,
  .carousel h2::before {
    animation: live 1.4s var(--ease) 0.4s 3;
  }

  /* An item comes up over the page, once, in a quarter of a second; the page dims behind it. */
  .popup[open] {
    animation: popup-in 0.26s var(--ease);
  }

  .popup[open]::backdrop {
    animation: dim-in 0.2s ease-out;
  }

  /* From one page to the next, a cross-fade instead of a blink, the header and the tabs holding still. */
  @view-transition {
    navigation: auto;
  }

  @supports (animation-timeline: view()) {
    /* A section's cards rise into place as they scroll in; the first section's never move, so the largest photo
       is not held back (§2.5). Not the full list's: sixty timelines cost the first paint more than they give. */
    .grid > .card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    main > section:first-of-type .card {
      animation: none;
    }

    /* In a carousel, the cards at its edges are a little smaller and paler, and grow as they slide in. */
    .strip > .card {
      animation: edge linear both;
      animation-timeline: view(inline);
    }
  }

  /* A line under a carousel shows how far along it the thumb is. */
  @supports (timeline-scope: --strip) {
    .carousel {
      timeline-scope: --strip;
    }

    .strip {
      scroll-timeline: --strip inline;
    }

    .carousel::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 4px;
      left: 0;
      height: 2px;
      background: var(--accent);
      border-radius: 2px;
      /* Where every card fits there is nothing to slide: the timeline stands still, and so the line is none. */
      transform: scaleX(0);
      transform-origin: left;
      animation: progress linear both;
      animation-timeline: --strip;
    }
  }
}

/* ---- What a card does (the owner, 2026-11-25: "animations on the card, on hover, a small movement") ----
   One of a list (look.ts, CARD_HOVERS): under a pointer, and on a phone, which has none, under the finger. And, if the
   site chose so, its sections' cards rise and sink by themselves (data-motion), each in its own time. */

html[data-hover="none"],
html:is([data-hover="zoom"], [data-hover="glow"], [data-hover="swing"], [data-hover="shine"]) {
  --move: 0 0;
}

html[data-hover="rise"] {
  --move: 0 -9px;
  --grow: 1.03;
}

html[data-hover="tilt"] {
  --move: 0 -5px;
  --turn: 1 -0.9 0 10deg;
}

html[data-hover="tilt"] :is(.grid, .strip, .thumbs) {
  perspective: 900px;
}

html[data-hover="glow"] .card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px var(--accent), 0 0 34px -2px var(--glow);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}

html[data-hover="glow"]:not([data-cards]) .thumbs .card::before {
  inset: -6px;
}

html[data-hover="shine"] .card > a {
  overflow: hidden;
}

html[data-hover="shine"] .card > a::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 42%) 50%, transparent 70%);
  border-radius: 12px;
  transform: translateX(-130%);
  pointer-events: none;
}

html[data-hover="zoom"] .card > a > :is(img, .clip) {
  clip-path: inset(0 round 12px);
  transition: scale 0.4s var(--ease), clip-path 0.4s var(--ease), opacity 0.3s;
}

@media (prefers-reduced-motion: no-preference) {
  /* The same for a pointer over a card and for a finger on one: which of the two is the device's to say. */
  @media (hover: hover) {
    .card:hover {
      translate: var(--move);
      scale: var(--grow);
      rotate: var(--turn);
    }

    html:not([data-hover="none"]) .card:hover::after,
    html[data-hover="glow"] .card:hover::before {
      opacity: 1;
    }

    html[data-hover="zoom"] .card:hover > a > :is(img, .clip) {
      clip-path: inset(4.2% round 11px);
      scale: 1.092;
    }

    html[data-hover="swing"] .card:hover > a {
      animation: swing 0.5s ease-in-out;
    }

    html[data-hover="shine"] .card:hover > a::after {
      animation: sheen 0.8s var(--ease) both;
    }
  }

  @media (hover: none) {
    .card:active {
      translate: var(--move);
      scale: var(--grow);
      rotate: var(--turn);
    }

    html:not([data-hover="none"]) .card:active::after,
    html[data-hover="glow"] .card:active::before {
      opacity: 1;
    }

    html[data-hover="zoom"] .card:active > a > :is(img, .clip) {
      clip-path: inset(4.2% round 11px);
      scale: 1.092;
    }

    html[data-hover="swing"] .card:active > a {
      animation: swing 0.5s ease-in-out;
    }

    html[data-hover="shine"] .card:active > a::after {
      animation: sheen 0.8s var(--ease) both;
    }
  }

  /* Rising and sinking: laid on top of what the scroll does to a card, not in its place (animation-composition). On a
     phone it comes to rest after about two minutes, to spare its battery, as the moving backgrounds do. */
  html[data-motion="float"] :is(.grid, .strip) > .card {
    --times: 24;
    animation: bob 2.6s ease-in-out infinite alternate;
    animation-iteration-count: var(--times);
  }

  html[data-motion="float"] :is(.grid, .strip) > .card:nth-child(3n + 2) {
    animation-delay: -1.1s;
  }

  html[data-motion="float"] :is(.grid, .strip) > .card:nth-child(3n) {
    animation-delay: -2s;
  }

  @media (hover: hover) and (pointer: fine) {
    html[data-motion="float"] :is(.grid, .strip) > .card {
      --times: infinite;
    }
  }

  @supports (animation-timeline: view()) and (animation-composition: add) {
    html[data-motion="float"] .grid > .card {
      animation: rise linear both, bob 2.6s ease-in-out infinite alternate;
      animation-timeline: view(), auto;
      animation-range: entry 0% entry 35%, normal;
      animation-composition: replace, add;
      animation-iteration-count: 1, var(--times);
    }

    html[data-motion="float"] .strip > .card {
      animation: edge linear both, bob 2.6s ease-in-out infinite alternate;
      animation-timeline: view(inline), auto;
      animation-composition: replace, add;
      animation-iteration-count: 1, var(--times);
    }

    html[data-motion="float"] :is(.grid, .strip) > .card:nth-child(3n + 2) {
      animation-delay: 0s, -1.1s;
    }

    html[data-motion="float"] :is(.grid, .strip) > .card:nth-child(3n) {
      animation-delay: 0s, -2s;
    }

    /* The first section's never move with the scroll: its largest photo is not held back (§2.5). They float, each in
       its own time like the others. */
    html[data-motion="float"] main > section:first-of-type > :is(.grid, .strip) > .card {
      animation: bob 2.6s ease-in-out infinite alternate;
      animation-timeline: auto;
      animation-composition: replace;
      animation-iteration-count: var(--times);
    }

    html[data-motion="float"] main > section:first-of-type > :is(.grid, .strip) > .card:nth-child(3n + 2) {
      animation-delay: -1.1s;
    }

    html[data-motion="float"] main > section:first-of-type > :is(.grid, .strip) > .card:nth-child(3n) {
      animation-delay: -2s;
    }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-buy:hover::after,
  .buy-button:hover::after {
    transform: translateX(4px);
  }

  .card-buy:hover::before,
  .buy-button:hover::before {
    animation: sheen 0.8s var(--ease) both;
  }
}

@media (hover: hover) {
  .card-buy:hover,
  .buy-button:hover,
  .site-search button:hover {
    filter: brightness(1.06);
  }

  .tabs a:hover,
  .subcategories a:hover {
    border-color: var(--tint-line);
    background: var(--tint);
  }

  .popup-close:hover {
    background: var(--soft);
  }
}

/* ---- A picture behind the page (the owner, 2026-11-22: "the background can be uploaded") ----
   One still layer under everything, fixed to the screen so the page scrolls over it; over the picture, in the same
   layer, a veil of the page's own colour, as thin as the page's texts allow whatever the picture holds (theme.ts,
   veilOver). A phone takes the lighter of the two files. The page's colour is under it and shows while it loads. */

html[data-image]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(var(--veil), var(--veil)), var(--image-s) center / cover no-repeat;
  pointer-events: none;
}

@media (min-width: 700px) {
  html[data-image]::before {
    background-image: linear-gradient(var(--veil), var(--veil)), var(--image);
  }
}

/* A part of the picture too small to count for the veil (a lamp, a star) may still lie under a word: each word on the
   bare picture has a halo of the page's own tone, unseen over the rest of it. Words on a panel, a pill or a button lie
   on that, and need none. */
html[data-image] body {
  text-shadow: var(--halo);
}

:where(.grid > .card, .strip > .card, html[data-cards] .thumbs > .card, .card-code, .card-share, .tag, .tabs a, .subcategories a, .paging a, .share, .code, .site-search, .site-mark, .card-buy, .buy-button, .video, .pros, .cons, .notice, .popup, .lightbox, .site-footer) {
  text-shadow: none;
}

/* ---- Behind the page (the owner, 2026-11-21: "can the background be animated? Very modern and technological") ----
   A site picks what lies behind its pages (`site.background`, theme.ts); the still one needs nothing here. Each of the
   others is two layers fixed to the screen, painted once and from then on only moved by the compositor: `transform`
   alone, never a blur and never a repaint (research/site-design.md §2.2), so the page scrolls over them freely. They
   move for a visitor who did not ask for less motion. On a phone they come to rest after about two minutes, to spare
   its battery; under a pointer they go on. Where a browser cannot mix colours there is no light to show, and the
   page is whole without it. */

@supports (color: color-mix(in srgb, red, blue)) {
  html[data-bg] {
    --light-1: color-mix(in oklab, var(--accent) 26%, transparent);
    --light-2: color-mix(in oklab, var(--accent-2, var(--accent)) 22%, transparent);
    --rule: color-mix(in oklab, var(--ink) 9%, transparent);
  }

  /* On a dark page a light may be stronger: it is the glow, not a stain. */
  html[data-bg][data-scheme="dark"] {
    --light-1: color-mix(in oklab, var(--accent) 44%, transparent);
    --light-2: color-mix(in oklab, var(--accent-2, var(--accent)) 38%, transparent);
    --rule: color-mix(in oklab, var(--ink) 11%, transparent);
  }

  html[data-bg] body::before,
  html[data-bg] body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
  }

  /* Aurora: two soft lights, the site's colour and its neighbour on the wheel, from opposite corners. */
  html[data-bg="aurora"] body,
  html[data-bg="beams"] body {
    background: var(--page);
  }

  html[data-bg="aurora"] body::before,
  html[data-bg="aurora"] body::after {
    width: 64vmax;
    height: 64vmax;
    border-radius: 50%;
  }

  html[data-bg="aurora"] body::before {
    top: -24vmax;
    left: -20vmax;
    background: radial-gradient(closest-side, var(--light-1), transparent);
  }

  html[data-bg="aurora"] body::after {
    right: -22vmax;
    bottom: -26vmax;
    background: radial-gradient(closest-side, var(--light-2), transparent);
  }

  /* Grid: fine rules under the top of the page, a cell wider than the screen on every side so a move of one cell
     shows no seam; over them, still, the page's own colour closing in away from the top. */
  html[data-bg="grid"] body::before {
    top: -48px;
    right: -48px;
    left: -48px;
    height: calc(78vh + 96px);
    background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  html[data-bg="grid"] body::after {
    inset: 0;
    background: radial-gradient(130% 78% at 50% 0%, transparent 26%, var(--page) 82%);
  }

  /* Beams: two bands of light leaning over the page, crossing as they go. */
  html[data-bg="beams"] body::before,
  html[data-bg="beams"] body::after {
    top: -30vh;
    width: 36vmin;
    height: 160vh;
  }

  html[data-bg="beams"] body::before {
    left: 6%;
    background: linear-gradient(90deg, transparent, var(--light-1), transparent);
    transform: rotate(22deg);
  }

  html[data-bg="beams"] body::after {
    right: 6%;
    background: linear-gradient(90deg, transparent, var(--light-2), transparent);
    transform: rotate(-16deg);
  }
}

@keyframes drift-1 {
  to {
    transform: translate3d(14vmax, 9vmax, 0) scale(1.12);
  }
}

@keyframes drift-2 {
  to {
    transform: translate3d(-12vmax, -10vmax, 0) scale(0.9);
  }
}

@keyframes grid-move {
  to {
    transform: translate3d(48px, 48px, 0);
  }
}

@keyframes beam-1 {
  from {
    transform: translate3d(-16vw, 0, 0) rotate(22deg);
  }
  to {
    transform: translate3d(38vw, 0, 0) rotate(10deg);
  }
}

@keyframes beam-2 {
  from {
    transform: translate3d(12vw, 0, 0) rotate(-16deg);
  }
  to {
    transform: translate3d(-40vw, 0, 0) rotate(-6deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-bg] body::before,
  html[data-bg] body::after {
    will-change: transform;
  }

  html[data-bg="aurora"] body::before {
    animation: drift-1 22s ease-in-out 6 alternate both;
  }

  html[data-bg="aurora"] body::after {
    animation: drift-2 28s ease-in-out 5 alternate both;
  }

  html[data-bg="grid"] body::before {
    animation: grid-move 18s linear 8 both;
  }

  html[data-bg="grid"] body::after {
    will-change: auto;
  }

  html[data-bg="beams"] body::before {
    animation: beam-1 19s ease-in-out 7 alternate both;
  }

  html[data-bg="beams"] body::after {
    animation: beam-2 24s ease-in-out 6 alternate both;
  }

  @media (hover: hover) and (pointer: fine) {
    html[data-bg] body::before,
    html[data-bg] body::after {
      animation-iteration-count: infinite;
    }
  }
}

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

/*
 * The signs before a section's name (icons.ts; the owner, 2026-11-25). Served at the end of every design's stylesheet and
 * taken into the admin's own, so the picker shows what the site will. Each is in one colour, --icon; what moves, moves
 * by transform and opacity alone, and only for a visitor who did not ask for less. A blink is slower than once a second.
 */
.sec-icon {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  color: var(--icon);
  font-style: normal;
  line-height: 1;
}

.sec-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentcolor;
  transform-origin: 50% 60%;
}

.icon-dot,
.icon-blink,
.icon-pulse {
  width: 0.7em;
  height: 0.7em;
}

.icon-dot::before,
.icon-blink::before,
.icon-pulse::before,
.icon-pulse::after {
  content: "";
  position: absolute;
  inset: 0.06em;
  background: var(--icon);
  border-radius: 50%;
}

.icon-blink::before {
  box-shadow: 0 0 0.5em var(--icon);
}

/* A little sign with a word: the colour, and the letters that read on it. */
.icon-word {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  width: auto;
  height: auto;
  padding: 0.28em 0.6em;
  overflow: hidden;
  background: var(--icon);
  border-radius: 0.5em;
  color: var(--on-icon);
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.icon-live::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  background: currentcolor;
  border-radius: 50%;
}

.icon-new::after,
.icon-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 60%) 50%, transparent 70%);
  transform: translateX(-120%);
}

.icon-bars {
  grid-auto-flow: column;
  gap: 0.14em;
  align-items: end;
  width: 1em;
}

.icon-bars b {
  width: 0.2em;
  height: 1em;
  background: var(--icon);
  border-radius: 0.1em;
  transform: scaleY(0.45);
  transform-origin: bottom;
}

.icon-bars b:nth-child(2) {
  transform: scaleY(0.9);
}

.icon-emoji {
  width: auto;
  height: auto;
  font-size: 1.1em;
}

.icon-image {
  display: block;
  width: auto;
  max-width: 120px;
  height: 1.6em;
  object-fit: contain;
}

.icon-image img {
  display: block;
  width: auto;
  max-width: 120px;
  height: 100%;
  object-fit: contain;
}

@keyframes icon-blink {
  50% {
    opacity: 0.12;
  }
}

@keyframes icon-ring {
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

@keyframes icon-sheen {
  60%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes icon-bar {
  50% {
    transform: scaleY(1);
  }
}

@keyframes icon-flicker {
  25% {
    transform: scale(1.06, 0.95) rotate(-3deg);
  }
  50% {
    transform: scale(0.95, 1.08);
  }
  75% {
    transform: scale(1.04, 0.97) rotate(3deg);
  }
}

@keyframes icon-twinkle {
  50% {
    opacity: 0.65;
    transform: scale(0.78) rotate(18deg);
  }
}

@keyframes icon-beat {
  15% {
    transform: scale(1.22);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.16);
  }
  60% {
    transform: scale(1);
  }
}

@keyframes icon-ring-bell {
  10%,
  30% {
    transform: rotate(16deg);
  }
  20%,
  40% {
    transform: rotate(-14deg);
  }
  50% {
    transform: none;
  }
}

@keyframes icon-bounce {
  40% {
    transform: translateY(-16%);
  }
}

@keyframes icon-fly {
  50% {
    transform: translate(9%, -11%);
  }
}

@keyframes icon-look {
  45%,
  55% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
}

@keyframes icon-tilt {
  25% {
    transform: rotate(-7deg);
  }
  75% {
    transform: rotate(7deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .icon-blink::before,
  .icon-live::before {
    animation: icon-blink 1.3s ease-in-out infinite;
  }

  .icon-pulse::after {
    animation: icon-ring 1.8s ease-out infinite;
  }

  .icon-new::after,
  .icon-top::after {
    animation: icon-sheen 2.6s ease-in-out infinite;
  }

  .icon-bars b {
    animation: icon-bar 0.9s ease-in-out infinite;
  }

  .icon-bars b:nth-child(2) {
    animation-delay: -0.35s;
  }

  .icon-bars b:nth-child(3) {
    animation-delay: -0.6s;
  }

  .icon-hot,
  .icon-sale {
    animation: icon-tilt 1.6s ease-in-out infinite;
  }

  .icon-fire svg {
    animation: icon-flicker 1.1s ease-in-out infinite;
  }

  .icon-star svg,
  .icon-spark svg {
    animation: icon-twinkle 1.8s ease-in-out infinite;
  }

  .icon-bolt svg {
    animation: icon-blink 1.6s ease-in-out infinite;
  }

  .icon-heart svg {
    animation: icon-beat 1.5s ease-in-out infinite;
  }

  .icon-bell svg {
    transform-origin: 50% 10%;
    animation: icon-ring-bell 2.2s ease-in-out infinite;
  }

  .icon-gift svg,
  .icon-arrow svg,
  .icon-crown svg {
    animation: icon-bounce 1.3s ease-in-out infinite;
  }

  .icon-rocket svg {
    animation: icon-fly 1.4s ease-in-out infinite;
  }

  .icon-eye svg {
    animation: icon-look 3.2s ease-in-out infinite;
  }
}
