/* SCRATCH base: reset, the ground, and every shared printed part.
   Rules of the family: flat inks, visible grain, hard offset shadows, things slam. Nothing fades, nothing glows. */

/* ── reset ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--f-mono);
  font-size: var(--t-body);
  line-height: 1.35;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  font-weight: 400;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
img,
canvas,
svg {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--orange);
  color: var(--ink);
}

/* ── the ground: a printed shop backer. One flat ink, a darker dot screen, grain. ── */
.ground {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cream);
  background-color: var(--ground);
  /* before the textures are made: a plain 45 degree screen in the token colour */
  background-image: radial-gradient(circle at 50% 50%, var(--ground-dot) 0 3.1px, transparent 3.7px), radial-gradient(circle at 50% 50%, var(--ground-dot) 0 3.1px, transparent 3.7px);
  background-size: 16px 16px, 16px 16px;
  background-position: 0 0, 8px 8px;
}
:root[data-tex] .ground {
  background-image: var(--tex-grain), var(--tex-ground);
  background-size: 256px 256px, 16px 896px;
  background-position: 0 0, 0 0;
}

/* euro-slot hang hole, die-cut through the backer. Give it about 20 px of room above for the bump. */
.hole {
  position: relative;
  display: block;
  width: clamp(92px, 26vw, 180px);
  height: clamp(18px, 5vw, 34px);
  margin-inline: auto;
  border-radius: 999px;
  background: #080808;
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.2);
}
.hole::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 38%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #080808;
  transform: translateX(-50%);
}
/* a small round punched hole (the sound switch). .is-on = the chad is still in it. */
.hole--punch {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.2);
}
.hole--punch::before {
  display: none;
}
.hole--punch.is-on::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background-color: var(--cream);
  background-image: var(--tex-grain);
  box-shadow: 2px 2px 0 #000;
}

/* ── type printed on the ground ─────────────────────────────────────────────── */
.print {
  margin: 0;
  /* the ink mask below also cuts off everything outside this box. The lines are set tight (0.9 to 0.98),
     so without this room the tail of a comma and the hard shadow of the last line would be cut:
     "$107,750" must never read as "$107.750". */
  padding: 0.06em 0.05em 0.14em 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-print);
  line-height: 0.98;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0.04em 0.04em 0 rgba(0, 0, 0, 0.42);
  -webkit-mask-image: var(--tex-ink);
  mask-image: var(--tex-ink);
  -webkit-mask-size: 192px 192px;
  mask-size: 192px 192px;
}
.print--xl {
  font-size: var(--t-print-xl);
  line-height: 0.9;
  letter-spacing: 0;
}
.print--ink {
  color: var(--ink);
  text-shadow: none;
}
.print--orange {
  color: var(--orange);
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.smallprint {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 226, 0.84);
}
.smallprint a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── marker strip: masking tape, written on with a marker ───────────────────── */
.marker {
  --rot: -3deg;
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0.34em 0.85em 0.26em;
  font-family: var(--f-marker);
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transform: rotate(var(--rot));
}
.marker::before,
.marker::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(5px 0, 0 18%, 6px 36%, 1px 54%, 6px 72%, 0 90%, 4px 100%, calc(100% - 4px) 100%, 100% 84%, calc(100% - 6px) 66%, calc(100% - 1px) 48%, calc(100% - 6px) 30%, 100% 14%, calc(100% - 5px) 0);
}
.marker::before {
  background: var(--ink);
  transform: translate(3px, 3px);
}
.marker::after {
  background-color: var(--tape);
  background-image: var(--tex-grain), repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.06) 0 1px, transparent 1px 4px);
}
.marker--yours {
  --rot: -5deg;
  font-size: 23px;
}
.marker--yours::after {
  background-color: var(--yellow);
}

/* ── stickers: the buttons of the site ──────────────────────────────────────── */
.sticker {
  --st-bg: var(--orange);
  --st-fg: var(--ink);
  --st-size: 104px;
  --st-h: 56px;
  --rot: -6deg;
  --st-lift: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--st-size);
  height: var(--st-size);
  padding: calc(var(--st-size) * 0.14);
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: calc(var(--st-size) * 0.2 * var(--fit, 1));
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: pre-line;
  color: var(--st-fg);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transform: translate(var(--st-lift), var(--st-lift)) rotate(var(--rot));
}
/* ::before = the white die-cut edge (and the hard shadow on round ones). ::after = the inked face. */
.sticker::before,
.sticker::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: inherit;
}
.sticker::before {
  inset: 0;
  background: var(--core);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25), 4px 5px 0 var(--ink);
}
.sticker::after {
  inset: calc(var(--st-size) * 0.05);
  background-color: var(--st-bg);
  background-image: var(--tex-grain), linear-gradient(140deg, rgba(255, 255, 255, 0.24) 0 20%, transparent 20% 72%, rgba(17, 17, 17, 0.13) 72% 100%);
  box-shadow: inset 0 0 0 calc(var(--st-size) * 0.028) var(--st-bg), inset 0 0 0 calc(var(--st-size) * 0.028 + 1.5px) var(--st-fg);
}
.sticker--orange {
  --st-bg: var(--orange);
  --st-fg: var(--ink);
}
.sticker--yellow {
  --st-bg: var(--yellow);
  --st-fg: var(--ink);
}
.sticker--cream {
  --st-bg: var(--cream);
  --st-fg: var(--ink);
}
.sticker--red {
  --st-bg: var(--red);
  --st-fg: var(--paper);
}
.sticker--sm {
  --st-size: 68px;
  --st-h: 44px;
}
.sticker--md {
  --st-size: 104px;
  --st-h: 56px;
}
.sticker--lg {
  --st-size: 148px;
  --st-h: 72px;
}
.sticker--round {
  border-radius: 50%;
}
/* burst: a zig-zag die-cut edge */
.sticker--burst {
  border-radius: 0;
  filter: drop-shadow(4px 5px 0 var(--ink));
}
.sticker--burst::before,
.sticker--burst::after {
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(50% 0%, 57.7% 6.5%, 67.1% 3%, 72.1% 11.7%, 82.1% 11.7%, 83.9% 21.6%, 93.3% 25%, 91.5% 34.9%, 99.2% 41.3%, 94.2% 50%, 99.2% 58.7%, 91.5% 65.1%, 93.3% 75%, 83.9% 78.4%, 82.1% 88.3%, 72.1% 88.3%, 67.1% 97%, 57.7% 93.5%, 50% 100%, 42.3% 93.5%, 32.9% 97%, 27.9% 88.3%, 17.9% 88.3%, 16.1% 78.4%, 6.7% 75%, 8.5% 65.1%, 0.8% 58.7%, 5.8% 50%, 0.8% 41.3%, 8.5% 34.9%, 6.7% 25%, 16.1% 21.6%, 17.9% 11.7%, 27.9% 11.7%, 32.9% 3%, 42.3% 6.5%);
}
.sticker--burst::after {
  inset: calc(var(--st-size) * 0.055);
}
.sticker--burst {
  padding: calc(var(--st-size) * 0.19);
  font-size: calc(var(--st-size) * 0.18 * var(--fit, 1));
}
/* tag: a price tag with a point and a punched eye */
.sticker--tag {
  width: auto;
  min-width: 44px;
  height: var(--st-h);
  padding: 0 1.05em 0 1.7em;
  border-radius: 0;
  font-size: calc(var(--st-h) * 0.42);
  white-space: nowrap;
  filter: drop-shadow(3px 4px 0 var(--ink));
}
.sticker--tag::before,
.sticker--tag::after {
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 50%, 15px 0, 100% 0, 100% 100%, 15px 100%);
}
.sticker--tag::after {
  inset: 3px 3px 3px 4px;
  background-image: radial-gradient(circle at 15px 50%, var(--ink) 0 3.4px, transparent 3.9px), var(--tex-grain), linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 30%, transparent 30% 78%, rgba(17, 17, 17, 0.12) 78% 100%);
}
.sticker__text {
  display: block;
}
.sticker__sub {
  display: block;
  margin-top: 0.3em;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.5em;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.sticker--tag .sticker__sub {
  display: inline;
  margin: 0 0 0 0.6em;
}
.sticker--tag {
  flex-direction: row;
}
/* a small round badge on the rim: a count, or 18+ */
.sticker__badge {
  position: absolute;
  top: -4%;
  right: -6%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  height: 2em;
  padding: 0.1em 0.42em 0;
  border-radius: 999px;
  border: 2px solid var(--core);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: max(11px, calc(var(--st-size) * 0.13));
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(9deg);
}
.sticker--tag .sticker__badge {
  top: -32%;
  right: -10px;
  font-size: max(11px, calc(var(--st-h) * 0.24));
}
@media (hover: hover) {
  .sticker:hover {
    --st-lift: -2px;
  }
  .sticker:hover::before {
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25), 6px 7px 0 var(--ink);
  }
  .sticker--burst:hover {
    filter: drop-shadow(6px 7px 0 var(--ink));
  }
  .sticker--tag:hover {
    filter: drop-shadow(5px 6px 0 var(--ink));
  }
}
/* pressed: it moves into its shadow */
.sticker:active,
.sticker.is-down {
  --st-lift: 3px;
}
.sticker:active::before,
.sticker.is-down::before {
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.25), 1px 1px 0 var(--ink);
}
.sticker--burst:active,
.sticker--tag:active,
.sticker--burst.is-down,
.sticker--tag.is-down {
  filter: drop-shadow(1px 1px 0 var(--ink));
}
.sticker[disabled],
.sticker.is-off {
  --st-bg: var(--cream-2);
  --st-fg: rgba(17, 17, 17, 0.55);
  cursor: default;
}
.sticker.is-bump {
  animation: sticker-bump 340ms linear both;
}
@keyframes sticker-bump {
  0% {
    transform: rotate(var(--rot)) scale(1);
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  26% {
    transform: rotate(calc(var(--rot) + 7deg)) scale(1.24);
    animation-timing-function: cubic-bezier(0.6, 0, 1, 0.5);
  }
  58% {
    transform: rotate(calc(var(--rot) - 3deg)) scale(0.93);
    animation-timing-function: steps(2, end);
  }
  100% {
    transform: rotate(var(--rot)) scale(1);
  }
}

/* the coin's own sticker: a round die-cut with a white edge, stuck on a few degrees off */
.coin-sticker {
  --px: 64px;
  --rot: -7deg;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--px);
  height: var(--px);
  padding: calc(var(--px) * 0.055);
  border-radius: 50%;
  background: var(--core);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.22), 2px 3px 0 var(--ink);
  transform: rotate(var(--rot));
  line-height: 0;
}
.coin-sticker > canvas,
.coin-sticker > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-2);
}

/* ── rubber stamps: broken ink, a double border, a little off square. They SLAM in. ── */
.stamp {
  --rot: -4deg;
  --stamp-c: var(--ink);
  position: relative;
  display: inline-block;
  padding: 0.24em 0.52em 0.17em;
  border: 0.11em solid var(--stamp-c);
  border-radius: 0.14em;
  outline: 0.045em solid var(--stamp-c);
  outline-offset: -0.25em;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--stamp-c);
  pointer-events: none;
  transform: rotate(var(--rot));
  mix-blend-mode: multiply;
  -webkit-mask-image: var(--tex-ink);
  mask-image: var(--tex-ink);
  -webkit-mask-size: 192px 192px;
  mask-size: 192px 192px;
  -webkit-mask-position: var(--mx, 0px) var(--my, 0px);
  mask-position: var(--mx, 0px) var(--my, 0px);
  animation: stamp-slam 180ms linear both;
}
.stamp--red {
  --stamp-c: var(--red);
}
.stamp--green {
  --stamp-c: var(--green);
}
.stamp--black {
  --stamp-c: var(--ink);
}
/* dry: the pad had no ink. Only the dent of the rubber shows. */
.stamp--dry {
  --stamp-c: rgba(17, 17, 17, 0.5);
  border-width: 0.05em;
  color: transparent;
  -webkit-text-stroke: 0.03em rgba(17, 17, 17, 0.55);
  -webkit-mask-image: none;
  mask-image: none;
}
/* a stamp on a slip of card stock, readable on any ground */
.stamp--toast {
  max-width: min(88vw, 520px);
  padding: 0.32em 0.62em 0.24em;
  font-size: clamp(22px, 6.4vw, 34px);
  white-space: normal;
  background-color: var(--cream);
  background-image: var(--tex-grain);
  box-shadow: 4px 4px 0 var(--ink);
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}
.stamp.is-hit-a {
  animation-name: stamp-slam;
}
.stamp.is-hit-b {
  animation-name: stamp-slam-b;
}
.stamp.is-leaving {
  animation: stamp-lift 140ms steps(2, end) both;
}
.stamp--toast.is-leaving {
  animation: stamp-leave 300ms steps(4, end) both;
}
@keyframes stamp-slam {
  0% {
    transform: rotate(var(--rot)) scale(1.6);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  70% {
    transform: rotate(var(--rot)) scale(0.93);
    animation-timing-function: steps(2, end);
  }
  100% {
    transform: rotate(var(--rot)) scale(1);
  }
}
@keyframes stamp-slam-b {
  0% {
    transform: rotate(var(--rot)) scale(1.6);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  70% {
    transform: rotate(var(--rot)) scale(0.93);
    animation-timing-function: steps(2, end);
  }
  100% {
    transform: rotate(var(--rot)) scale(1);
  }
}
@keyframes stamp-lift {
  0% {
    transform: rotate(var(--rot)) scale(1);
    visibility: visible;
  }
  100% {
    transform: rotate(var(--rot)) scale(1.12);
    visibility: hidden;
  }
}
@keyframes stamp-leave {
  0% {
    transform: rotate(var(--rot)) translateY(0);
  }
  100% {
    transform: rotate(calc(var(--rot) * 3)) translateY(60vh);
  }
}
.stamp-toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
  pointer-events: none;
}

/* ── paper file tabs ────────────────────────────────────────────────────────── */
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  flex: none;
  min-height: 44px;
  padding: 11px 15px 8px;
  border-radius: 9px 9px 0 0;
  border-bottom: 2px solid var(--ink);
  background-color: var(--cream-2);
  background-image: var(--tex-grain);
  box-shadow: 3px 0 0 var(--ink);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.tab.is-active {
  z-index: 1;
  margin-top: -6px;
  padding-top: 17px;
  border-bottom-color: var(--paper);
  background-color: var(--paper);
  box-shadow: 4px 0 0 var(--ink);
}
.tab:active {
  transform: translateY(2px);
}

/* ── SKU label: an address line with its barcode. Tap copies. ───────────────── */
.sku {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 9px 12px 7px;
  border-radius: 3px;
  background-color: var(--paper);
  background-image: var(--tex-grain);
  box-shadow: var(--shadow);
  font-family: var(--f-mono);
  font-size: var(--t-small);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  overflow: hidden;
}
button.sku,
a.sku {
  cursor: pointer;
  touch-action: manipulation;
}
button.sku:active,
a.sku:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.sku__label {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}
.sku__code {
  max-width: 100%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.barcode {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--f-barcode);
  font-weight: 400;
  font-size: 52px;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}

/* ── thermal paper, torn edges, receipt stub, perforation ───────────────────── */
.paper {
  position: relative;
  background-color: var(--paper);
  background-image: var(--tex-grain);
  box-shadow: var(--shadow);
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--print);
}
/* zigzag tear. A mask also cuts a box-shadow off: put the hard shadow on a wrapper with
   filter: drop-shadow(3px 3px 0 var(--ink)) when a torn piece needs one. */
.torn-top,
.torn-bottom {
  --tooth: 12px;
  --torn-t: linear-gradient(#000 0 0) top / 100% 51% no-repeat;
  --torn-b: linear-gradient(#000 0 0) bottom / 100% 51% no-repeat;
  -webkit-mask: var(--torn-t), var(--torn-b);
  mask: var(--torn-t), var(--torn-b);
  box-shadow: none;
}
.torn-top {
  --torn-t: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--tooth) 51% repeat-x;
  padding-top: calc(var(--tooth) * 0.5 + 8px);
}
.torn-bottom {
  --torn-b: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x;
  padding-bottom: calc(var(--tooth) * 0.5 + 8px);
}
.stub {
  position: relative;
  display: block;
  padding: 10px 12px;
  background-color: var(--paper);
  background-image: var(--tex-grain);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--print);
}
.stub.torn-top {
  padding-top: calc(var(--tooth) * 0.5 + 8px);
}
.stub.torn-bottom {
  padding-bottom: calc(var(--tooth) * 0.5 + 8px);
}
.stub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
  padding-bottom: 3px;
  border-bottom: 1px dashed currentColor;
  font-weight: 700;
}
.stub__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
  white-space: nowrap;
}
/* a row with a link: the whole row is the link, not only the few letters of its value */
.stub__row > a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.stub__row > :last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.stub a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
/* a finger gets 44 px on every row that is a link. Plain rows stay short, so the stub stays a stub. */
@media (pointer: coarse) {
  .stub__row {
    min-height: 24px;
  }
  .stub__row--link {
    min-height: 44px;
  }
}
@media (pointer: coarse) {
  /* the same for a row a page built without the --link class */
  .stub__row:has(> a) {
    min-height: 44px;
  }
}
.perf {
  display: block;
  height: 6px;
  margin: 0;
  border: 0;
  color: rgba(17, 17, 17, 0.62);
  background: radial-gradient(circle at 50% 50%, currentColor 0 1.6px, transparent 2.1px) 0 50% / 9px 6px repeat-x;
}

/* ── helpers ────────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* focus: a hard ring, yellow on the ground, black on stock */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.paper :focus-visible,
.stub :focus-visible,
.sku:focus-visible,
.tab:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}
.sticker:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

/* reduced motion: ink and stamps still update, nothing slams or bounces */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
