/* ─────────────────────────────────────────────
   Live: full replay (project pages, layout A)
   Loaded after live.css. Used full page (project-*/)
   and inside the home page's replay overlay.
   ───────────────────────────────────────────── */
.is-replay-page {
  padding-bottom: 0;
}
.mr {
  position: relative;
  background: var(--bg);
  --mr-col: min(100%, 78rem);
}
.mr .accent,
.mr-title em {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ── Replay bug: logo / REPLAY / clock / project / back ── */
.mr-bug {
  position: fixed;
  top: 1rem;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 100;
  display: flex;
  align-items: stretch;
  height: var(--bug-h);
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.8);
}
.mr-bug > * + * {
  border-left: 1px solid var(--border);
}
.mr-live {
  gap: 0.55rem;
}
.mr-live .replay-badge-mark {
  background: var(--bg);
}
.mr-bug-name {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-close {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.35rem;
  padding: 0 0.9rem 0 1.1rem;
  background: var(--cream);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out-quart);
}
.mr-close svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.mr-close:hover {
  background: var(--text-primary);
}
@media (max-width: 760px) {
  .mr-bug-name {
    display: none;
  }
}
@media (max-width: 480px) {
  .mr-close span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .mr-close {
    padding: 0 0.85rem;
  }
}

/* ── Kick-off: cover, lower third, team sheet ── */
.mr-hero {
  position: relative;
}
.mr-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(1.25rem, 3vh, 2rem) 2.5rem;
  width: var(--mr-col);
  margin: 0 auto;
  padding: calc(var(--bug-h) + clamp(2.5rem, 7vh, 4.5rem)) var(--gutter) clamp(3rem, 8vh, 5rem);
}
.mr-kick {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mr-case {
  color: var(--cream-muted);
  font-variant-numeric: tabular-nums;
}
.mr-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, calc(var(--fit, 8) * 1.15vw), 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25em;
}
.mr-title .w {
  display: block;
  overflow: hidden;
  /* Room for descenders (the Q tail) and the italic overhang inside the reveal mask */
  padding: 0.06em 0.08em 0.2em 0;
  margin: -0.06em -0.08em -0.14em 0;
}
.mr-title .w > span {
  display: block;
}
.mr-title em {
  color: var(--cream);
  font-size: 1.08em;
}
.mr-shot {
  position: relative;
}
.mr-frame {
  aspect-ratio: 2544 / 1090;
}
.mr-l3 {
  position: relative;
  width: min(calc(100% - 1rem), 34rem);
  margin: -2.75rem 0 0 clamp(0.75rem, 3vw, 2rem);
}
.mr-l3 .l3-name {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}
.mr-l3 .l3-desc {
  font-size: 0.92rem;
}
@media (max-width: 1023px) {
  /* The cover is short on a phone: only the strap overlaps its edge */
  .mr-l3 {
    margin-top: -0.9rem;
  }
}

.mr-sheet {
  display: grid;
  gap: 1.5rem;
  align-content: space-between;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.25rem 1.25rem 1.4rem;
}
.mr-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.mr-facts > div:first-child {
  grid-column: 1 / -1;
}
.mr-facts dd {
  overflow-wrap: anywhere;
}
.mr-facts dt,
.mr-sheet-label {
  color: #938d87;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mr-facts dd {
  margin-top: 0.3rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}
.mr-lineup ol {
  margin-top: 0.6rem;
  display: grid;
  border-top: 1px solid var(--border);
}
.mr-lineup li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mr-no {
  width: 1.6rem;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.mr-pos {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .mr-stage {
    grid-template-columns: minmax(0, 1fr) clamp(16rem, 23vw, 20rem);
  }
  .mr-kick,
  .mr-title {
    grid-column: 1 / -1;
  }
  .mr-sheet {
    align-self: stretch;
  }
}

/* ── Chapters: team talk, first half, second half ── */
.mr-chapters {
  position: relative;
  width: var(--mr-col);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) 0;
  display: grid;
  gap: clamp(4rem, 11vh, 6.5rem);
}
/* The match line: a rule down the tag column that fills as the replay plays */
.mr-chapters::before,
.mr-chapters::after {
  content: "";
  position: absolute;
  top: calc(clamp(2rem, 6vh, 4rem) + 1.2rem); /* starts at the first chip's centre */
  bottom: calc(var(--reach, 0px) * -1);
  left: calc(var(--gutter) + 1.2rem);
  width: 1px;
  background: var(--border);
}
.mr-chapters::after {
  background: var(--vermillion);
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
}
.mr-ch {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-left: 3.75rem;
  scroll-margin-top: calc(var(--bug-h) + 2rem);
}
.mr-ch-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mr-ch .mr-ch-tag {
  margin-left: -3.75rem;
}
.mr-ch-min {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.4rem;
  background: var(--bg);
  border: 1px solid #3a3734;
  transition: border-color 0.3s var(--ease-out-quart);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.mr-ch.is-live .mr-ch-min,
.mr-hl.is-live .mr-ch-min {
  border-color: var(--vermillion);
}
.mr-ch-tag > span:nth-child(2) {
  color: var(--cream);
  font-size: 0.85rem;
}
.mr-ch-sub {
  color: #938d87;
}
.mr-ch-body {
  display: grid;
  gap: 1.1rem;
}
.mr-ch-title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.mr-ch-title .accent {
  color: var(--cream);
  font-size: 1.06em;
}
.mr-ch-text {
  max-width: 60ch;
  color: var(--cream-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}
.mr-ch-text--lg {
  max-width: 52ch;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}
.mr-ch-text strong {
  color: var(--cream);
  font-weight: 700;
}
@media (min-width: 1024px) {
  .mr-ch {
    grid-template-columns: 15rem minmax(0, 1fr);
    padding-left: 0;
    column-gap: 3rem;
  }
  .mr-ch .mr-ch-tag {
    margin-left: 0;
    align-self: start;
    position: sticky;
    top: calc(var(--bug-h) + 3rem);
    display: grid;
    grid-template-columns: 2.4rem auto;
    column-gap: 1.1rem;
    row-gap: 0.35rem;
    align-items: center;
  }
  .mr-ch .mr-ch-min {
    grid-row: span 2;
  }
  .mr-ch > :not(.mr-ch-tag) {
    grid-column: 2;
  }
  .mr-chapters::before,
  .mr-chapters::after {
    left: calc(var(--gutter) + 1.2rem);
  }
}

/* ── Highlights: the accordion as a multi-cam split screen ── */
.mr-hl {
  margin-top: clamp(3rem, 8vh, 5rem);
}
.mr-hl-stage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: var(--mr-col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.mr-hl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.mr-hl-head .mr-ch-tag {
  flex-basis: 100%;
}
.mr-hl-count {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.mr-hl-count b {
  color: var(--cream);
}
.mr-hl-count i {
  font-style: normal;
}
.acc {
  display: flex;
  gap: 6px;
  height: min(62svh, 40rem);
}
.acc-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  transition: flex-grow 0.9s var(--ease-out-expo), border-color 0.3s var(--ease-out-quart);
}
.acc-panel.on {
  flex-grow: 6;
}
.acc-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--vermillion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}
.acc-panel.on::before {
  transform: none;
}
.acc-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.28) contrast(1.1);
  transform: scale(1.06);
  transition: filter 0.8s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.acc-panel.on img {
  filter: none;
  transform: none;
}
.acc-panel:not(.on):hover img {
  filter: grayscale(0.4) brightness(0.55);
}
.acc-cam {
  position: absolute;
  z-index: 2;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: rgb(10 10 10 / 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.acc-cam i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4a4642;
}
.acc-panel.on .acc-cam i {
  background: var(--vermillion);
}
.acc-cap {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--cream);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s var(--ease-out-quart), transform 0.5s var(--ease-out-expo);
}
.acc-cap svg {
  width: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.acc-panel.on .acc-cap {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}
.acc-panel:focus-visible {
  outline-offset: -3px;
}
@media (min-width: 769px) {
  .mr-hl {
    margin-top: 0; /* the sticky stage already clears the bug */
  }
  .mr-hl-pin {
    height: 280svh;
  }
  .mr-hl-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    justify-content: flex-start;
    padding-top: calc(var(--bug-h) + 3.5rem);
  }
}
@media (max-width: 768px) {
  .acc {
    height: auto;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .acc::-webkit-scrollbar {
    display: none;
  }
  .acc-panel {
    flex: 0 0 82%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
  .acc-panel img {
    filter: none;
    transform: none;
  }
  .acc-cap {
    display: none;
  }
}

/* ── Full time of the replay: next fixture ── */
.mr-end {
  width: var(--mr-col);
  margin: calc(var(--hl-slack, 0px) * -1) auto 0; /* see fitEnd in replay.js */
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) clamp(4rem, 10vh, 6rem);
  display: grid;
  gap: 1.5rem;
}
.mr-next {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "label label thumb"
    "min name thumb"
    "min cat go";
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-quart);
}
.mr-next:hover {
  border-color: var(--cream-muted);
}
.mr-next-label {
  grid-area: label;
  color: #938d87;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mr-next-min {
  grid-area: min;
  display: grid;
  place-items: center;
  min-width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--vermillion);
  color: var(--cream);
  font-weight: 700;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.mr-next-name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.mr-next-cat {
  grid-area: cat;
  color: var(--text-secondary);
}
.mr-next-thumb {
  grid-area: thumb;
  width: clamp(12rem, 28vw, 22rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
}
.mr-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}
.mr-next:hover .mr-next-thumb img {
  transform: scale(1.05);
}
.mr-next-go {
  grid-area: go;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--cream);
  color: var(--bg);
  transition: transform 0.4s var(--ease-out-expo);
}
.mr-next-go svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.mr-next:hover .mr-next-go {
  transform: translateX(4px);
}
.mr-next--ht {
  grid-template-areas:
    "label label go"
    "min name go"
    "min cat go";
}
.mr-prev {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.75rem 0;
}
.mr-prev svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.mr-prev b {
  color: var(--cream);
  font-weight: 600;
}
.mr-prev:hover b {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 640px) {
  .mr-next {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "label label"
      "min name"
      "cat cat"
      "thumb thumb";
  }
  .mr-next-min {
    min-width: 3.25rem;
    height: 3.25rem;
    font-size: 1.05rem;
  }
  .mr-next-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .mr-next-go {
    display: none;
  }
  .mr-next--ht {
    grid-template-areas:
      "label label"
      "min name"
      "cat cat";
  }
}

/* ── Lightbox ── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgb(10 10 10 / 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out-expo), visibility 0s linear 0.35s;
}
.lb.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out-expo);
}
.lb img {
  max-width: 88vw;
  max-height: 80svh;
  object-fit: contain;
  border: 1px solid var(--border);
}
.lb button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--cream);
  cursor: pointer;
}
.lb button:hover {
  background: var(--cream);
  color: var(--bg);
}
.lb svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.lb-close { top: 1rem; right: var(--gutter); }
.lb-prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.6rem;
  background: var(--bg-elevated);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

/* ── Build mode: the replay renders from wireframe to on air ── */
.is-build .mr-title,
.is-build .mr-sheet,
.is-build .mr-ch-title,
.is-build .mr-ch-text,
.is-build .mr-next {
  position: relative;
}
.is-build .mr-title {
  color: color-mix(in srgb, var(--text-primary) calc(var(--r, 1) * 100%), #4a4642);
}
.is-build .mr-title em {
  color: color-mix(in srgb, var(--cream) calc(var(--r, 1) * 100%), #4a4642);
}
.is-build .mr-sheet {
  background-color: color-mix(in srgb, var(--bg-elevated) calc(var(--r, 1) * 100%), transparent);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--border) calc(var(--r, 1) * 100%), rgb(232 220 200 / 0.3));
}
.is-build .mr-lineup li {
  opacity: calc(0.55 + var(--r, 1) * 0.45);
  transform: translateX(calc((1 - var(--r, 1)) * 1.5rem));
}
.is-build .mr-ch-title {
  color: color-mix(in srgb, var(--text-primary) calc(var(--r, 1) * 100%), #4a4642);
}
.is-build .mr-ch-title .accent {
  color: color-mix(in srgb, var(--cream) calc(var(--r, 1) * 100%), #4a4642);
}
.is-build .mr-ch-text {
  color: color-mix(in srgb, var(--cream-muted) calc(var(--r, 1) * 100%), #4a4642);
}
.is-build .mr-ch-text strong {
  color: color-mix(in srgb, var(--cream) calc(var(--r, 1) * 100%), #4a4642);
}
.is-build .mr-sheet {
  opacity: calc(0.15 + var(--r, 1) * 0.85);
}
/* Cameras: crossed placeholder boxes that cut to the feed */
.is-build .acc-panel {
  background-image:
    linear-gradient(to top right, transparent calc(50% - 1px), #2c2a27 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), #2c2a27 50%, transparent calc(50% + 1px));
}
.is-build .acc-panel img {
  clip-path: inset(calc((1 - var(--r, 1)) * 100%) 0 0 0);
}
.is-build .acc-panel::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: calc((1 - var(--r, 1)) * 100%);
  height: 0.6rem;
  margin-top: -0.3rem;
  background: var(--vermillion);
  transform: skewY(-8deg);
  opacity: clamp(0, calc(min(var(--r, 1), 1 - var(--r, 1)) * 30), 1);
  pointer-events: none;
}
.is-build .mr-next {
  background-color: color-mix(in srgb, var(--bg-elevated) calc(var(--r, 1) * 100%), transparent);
}
.is-build .mr-sheet,
.is-build .mr-frame,
.is-build .mr-l3 {
  box-shadow: 0 calc(var(--lift, 0) * 28px) calc(var(--lift, 0) * 56px) calc(var(--lift, 0) * -12px) rgb(0 0 0 / calc(var(--lift, 0) * 0.85));
}
.is-build .mr-sheet .wire,
.is-build .mr-l3 .wire,
.is-build .mr-frame .wire {
  border-color: color-mix(in srgb, var(--cream) calc(var(--lift, 0) * 100%), rgb(232 220 200 / 0.45));
}
.is-build .mr-shot {
  position: relative;
}
/* Desktop: the kick-off holds on screen while the cursor builds it */
@media (min-width: 1024px) and (min-height: 640px) {
  .is-build .mr-hero.is-held {
    height: 180svh;
  }
  .is-build .mr-hero.is-held .mr-stage {
    position: sticky;
    top: 0;
    min-height: 100svh;
  }
}

/* ── Home page overlay: the replay plays over the match ── */
.mr-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
}
.mr-layer[hidden] {
  display: none;
}
.mr-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  scrollbar-color: #2e2c2a var(--bg);
}
.mr-scroll::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: calc(var(--bug-h) + 5rem);
  margin-bottom: calc(-1 * (var(--bug-h) + 5rem));
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(10 10 10 / 0.94) 55%, rgb(10 10 10 / 0));
}
/* Stinger: a vermillion wipe that cuts between the match and the replay */
.mr-sting {
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
  display: grid;
  place-items: center;
  visibility: hidden;
}
.mr-sting i {
  position: absolute;
  inset: -20% -40%;
  background: var(--vermillion);
}
.mr-sting i:first-child {
  background: var(--bg-elevated);
}
.mr-sting b {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 7rem);
  letter-spacing: -0.03em;
  opacity: 0;
}
.mr-sting b span {
  width: 0.32em;
  height: 0.32em;
  background: var(--bg);
  transform: rotate(45deg);
}
/* Still loading: the diamond blinks like a recording light */
.mr-sting.is-waiting b span {
  animation: pulse 0.9s var(--ease-in-out) infinite;
}
html.has-replay,
html.has-replay body {
  overflow: hidden;
}
.is-build .mr-ch-text--lg {
  color: color-mix(in srgb, var(--text-primary) calc(var(--r, 1) * 100%), #4a4642);
}
@media (prefers-reduced-motion: reduce) {
  .acc-panel,
  .acc-panel img,
  .acc-panel::before,
  .acc-cap {
    transition: none;
  }
}
/* The match line runs behind the minute chips, never over them */
.mr-ch-tag {
  position: relative;
  z-index: 1;
}
.mr-ch-min {
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .mr-ch .mr-ch-tag {
    position: sticky;
  }
}
