/* Xəbər devlog. The colours are the site's own theme tokens
   (../assets/themes.css); the game's match-lit logo is repainted with the
   theme's field ramp, the X brightest and the R dimmest, as in the original.
   Desktop: a sticky stage on the left shows the screenshot of the update being
   read; the text scrolls on the right. Phone: one column, each update with
   its own screenshot. */

@property --logo-f2 { syntax: "<color>"; inherits: true; initial-value: #f3c050; }
@property --logo-f3 { syntax: "<color>"; inherits: true; initial-value: #fff3d4; }

:root {
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.21, 0.47, 0.32, 0.98);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: 20px;

  --ground: var(--t-bg);
  --ink: var(--t-text);
  --soft: var(--t-text-secondary);
  --step: var(--t-surface-2);
  --accent: var(--t-brand);
  --accent-ink: var(--t-brand-ink);
  --ring: color-mix(in srgb, var(--t-brand) 80%, var(--t-text));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 26%, transparent);

  /* Five type sizes for the whole page. */
  --fs-1: clamp(2.5rem, 3.4vw, 3.25rem);
  --fs-2: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-3: 1.0625rem;
  --fs-4: 0.9375rem;

  /* The logo's tones, nearest the flame first. The flame keeps its fire. */
  --logo-k1: var(--t-field-crest);
  --logo-k2: var(--t-field-hover);
  --logo-k3: var(--t-field-lit);
  --logo-k4: var(--t-field-mid);
  --logo-k5: var(--t-field-dim);
  --logo-k6: color-mix(in srgb, var(--t-field-dim) 55%, var(--ground));
  --logo-k7: color-mix(in srgb, var(--t-field-dim) 25%, var(--ground));
  --logo-f1: #d9722b;
  --logo-f2: #f3c050;
  --logo-f3: #fff3d4;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  font-family: var(--sans);
  font-size: var(--fs-3);
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--t-selection); color: var(--ink); }

a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

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

.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  z-index: 10;
  padding: 8px 12px;
  background: var(--ground);
  color: var(--ink);
  font-size: var(--fs-4);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ---------- Logo ---------- */
.logo { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .logo { animation: flame 2.4s steps(1, end) infinite; }
}
@keyframes flame {
  0%, 100% { --logo-f3: #fff3d4; --logo-f2: #f3c050; }
  23% { --logo-f3: #f3c050; --logo-f2: #f3c050; }
  31% { --logo-f3: #fff3d4; --logo-f2: #d9722b; }
  58% { --logo-f3: #fff3d4; --logo-f2: #f3c050; }
  71% { --logo-f3: #f3c050; --logo-f2: #d9722b; }
  79% { --logo-f3: #fff3d4; --logo-f2: #f3c050; }
}

/* ---------- Layout ---------- */
.read {
  padding: 0 var(--gutter);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 8px;
  font-size: var(--fs-4);
}
.bar a {
  padding: 8px 0;
  text-decoration: none;
  text-underline-offset: 0.35em;
  transition: color 0.15s var(--ease);
}
.bar a:hover { text-decoration: underline; }
.bar-home { font-weight: 600; }
.bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  color: var(--soft);
}
.bar-links a:hover,
.bar-links a[aria-current="true"] {
  color: var(--ink);
}
.bar-links a[aria-current="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.bar-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.12s var(--ease);
}
.bar-lang:hover {
  background: var(--step);
}
.bar-lang:active {
  transform: scale(0.95);
}

@media (max-width: 639px) {
  .bar {
    min-height: 60px;
    gap: 8px 12px;
    padding-block: 8px;
  }
  .bar-links {
    gap: 4px 14px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 68px);
    padding: 20px 0 44px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 28px;
}

.hero-logo { max-width: 40rem; margin-left: -2px; }

.hero-title {
  margin-top: 36px;
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 32ch;
  margin-top: 24px;
  font-size: var(--fs-2);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero-status {
  margin-top: 22px;
  color: var(--soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 36px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-4);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: color-mix(in oklch, var(--accent), white 14%); }
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px) scale(0.985); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-actions .btn { margin-top: 0; }
.btn-quiet { background: var(--step); color: var(--ink); }
.btn-quiet:hover { background: color-mix(in oklch, var(--step), var(--ink) 10%); }

/* ---------- Tabs (design-taste-frontend motion + system recipe) ---------- */
.tabs-wrap {
  margin-top: 96px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--step);
  color: var(--soft);
  font-family: var(--sans);
  font-size: var(--fs-4);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.24s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease), transform 0.12s var(--ease);
}
.tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.tab:active {
  transform: scale(0.98);
}
.tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
}

html.js .tabs.m-has-ind {
  position: relative;
  isolation: isolate;
}
html.js .tabs.m-has-ind .tab {
  position: relative;
  z-index: 1;
}
html.js .tabs.m-has-ind .tab[aria-selected="true"] {
  background: transparent;
  border-color: transparent;
}

.m-tab-ind {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--w, 0px);
  height: var(--h, 0px);
  background: var(--accent);
  pointer-events: none;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--sx, 1), var(--sy, 1));
  transform-origin: 0 0;
  transition: transform 0.24s var(--ease-io);
}
.m-tab-ind.is-jump {
  transition: none;
}

/* ---------- Sections & Tab panels ---------- */
.tab-panel {
  margin-top: 56px;
  scroll-margin-top: 32px;
}
html.js .tab-panel[hidden] {
  display: none;
}
html:not(.js) .tab-panel[hidden] {
  display: block;
  margin-top: 120px;
}

.section-title {
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
}

.about-text { max-width: 38rem; }
.about-text p + p { margin-top: 1.2em; }
.about-first { font-weight: 500; font-size: var(--fs-2); line-height: 1.45; }

/* ---------- Roadmap (inside About) ---------- */
.roadmap {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.roadmap-title {
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.roadmap-intro {
  margin-top: 16px;
  color: var(--soft);
}
.roadmap-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.roadmap-item {
  padding: 24px 28px;
  background: var(--step);
  border: 1px solid var(--line);
}
.roadmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.roadmap-name {
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.roadmap-tag {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.roadmap-tag.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.roadmap-item p {
  margin-top: 12px;
  color: var(--soft);
}

/* ---------- Changelog, Controls, FAQ, Press kit ---------- */
.changelog,
.about-block {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  max-width: 40rem;
  scroll-margin-top: 32px;
}
.changelog-title {
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.changelog-intro {
  margin-top: 16px;
  color: var(--soft);
}
.changelog-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 24px;
}
.changelog-item {
  padding: 24px 28px;
  background: var(--step);
  border: 1px solid var(--line);
}
.changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.changelog-ver {
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
}
.changelog-date {
  font-size: var(--fs-4);
  color: var(--soft);
}
.changelog-notes {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.sub-heading {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.spec-rows {
  margin: 0;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 11.5rem) 1fr;
  gap: 16px 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row dt {
  font-weight: 600;
  color: var(--ink);
}
.spec-row dd {
  margin: 0;
  color: var(--soft);
}
@media (max-width: 639px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #tab-updates {
    grid-column: 1 / -1;
  }
  .tab {
    width: 100%;
    padding: 0 12px;
  }
  .roadmap-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }
  .spec-row {
    grid-template-columns: 7.75rem 1fr;
    gap: 12px;
    padding: 11px 0;
  }
}

.faq-list {
  margin: 36px 0 0;
  display: grid;
  gap: 32px;
}
.faq-item {
  padding: 24px 28px;
  background: var(--step);
  border: 1px solid var(--line);
}
.faq-item dt {
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.faq-item dd {
  margin: 12px 0 0;
  color: var(--soft);
}

.press-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.press-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--step);
  border: 1px solid var(--line);
  font-size: var(--fs-4);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .press-links a:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
  }
}

/* ---------- Supporters ---------- */
.supporters-intro { max-width: 38rem; color: var(--soft); }
.supporter-list { margin: 36px 0 0; padding: 0; list-style: none; max-width: 44rem; }
.supporter {
  padding: 28px;
  background: var(--step);
  border: 1px solid var(--line);
}
.supporter + .supporter { margin-top: 24px; }
.supporter-details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; }
.supporter-name { font-size: var(--fs-2); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.supporter-date { margin-top: 6px; font-size: var(--fs-4); color: var(--soft); }
.supporter-gift { display: flex; flex-direction: column; }
.supporter-gift strong { font-size: var(--fs-2); font-weight: 600; line-height: 1.3; }
.supporter-gift span { margin-top: 6px; font-size: var(--fs-4); color: var(--soft); }
.supporter-note blockquote { margin: 28px 0 0; font-size: var(--fs-2); line-height: 1.5; letter-spacing: -0.01em; }

/* ---------- Updates ---------- */
.entry + .entry {
  margin-top: 112px;
}
/* Version links land just below the top edge, above devlog.js's reading
   line (keep this under its 320px). */
.entry { scroll-margin-top: 48px; }

.entry-title {
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.entry-title a {
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.entry-title a:hover { text-decoration: underline; }
.entry-title .num { margin-right: 0.4em; color: var(--accent); }

.entry-date {
  margin-top: 6px;
  font-size: var(--fs-4);
  color: var(--soft);
}

.entry-shot { margin: 28px 0 32px; }
.entry-shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--t-field-bg);
}
.entry-shot figcaption {
  margin-top: 12px;
  font-size: var(--fs-4);
  color: var(--soft);
}

.entry-text { max-width: 38rem; }
.entry-text p + p { margin-top: 1.2em; }

/* ---------- Before and after ----------
   Without script the two pictures stand one above the other. With it
   (devlog.js) they share one frame: the "after" covers the right of a divider
   the visitor drags, or moves with the arrow keys. */
.entry-compare { max-width: 44rem; margin-top: 40px; }
.entry-compare figcaption {
  margin-top: 12px;
  font-size: var(--fs-4);
  color: var(--soft);
}
.compare img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--t-field-bg);
}
.compare img + img { margin-top: 8px; }

html.js .compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  background: var(--t-field-bg);
  touch-action: pan-y;
}
html.js .compare img + img { margin-top: 0; }
html.js .compare-after {
  position: absolute;
  inset: 0;
  height: 100%;
  clip-path: inset(0 0 0 var(--pos));
}
html.js .compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  /* Over a night picture in any theme, so not a theme colour. */
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35); /* taste-skill-ignore: contrast edge of the interactive comparison range control */
  pointer-events: none;
}
.compare-tag {
  position: absolute;
  bottom: 10px;
  padding: 2px 8px;
  background: color-mix(in srgb, var(--ground) 80%, transparent);
  color: var(--ink);
  font-size: var(--fs-4);
  pointer-events: none;
}
.compare-tag.is-before { left: 10px; }
.compare-tag.is-after { right: 10px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
html.js .compare:has(.compare-range:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* ---------- Sounds ---------- */
.sounds-intro {
  max-width: 38rem;
  color: var(--soft);
}

.sound-group {
  margin-top: 48px;
  max-width: 40rem;
}
.sound-group + .sound-group {
  margin-top: 64px;
}

.sound-group-title {
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.sound-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.sound {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--step);
  border: 1px solid var(--line);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.sound::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
  pointer-events: none;
}
.sound.is-playing {
  border-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .sound:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
  }
  .sound.is-playing:hover {
    border-color: var(--accent);
  }
}

.sound-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.sound-btn:hover { background: color-mix(in oklch, var(--accent), white 14%); }
.sound-btn:active { transform: scale(0.95); }
.sound-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.sound-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.sound-btn[aria-pressed="true"] .sound-icon {
  width: 14px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(to right, currentColor 0 5px, transparent 5px 9px, currentColor 9px 14px);
}

.sound-text {
  flex: 1;
  min-width: 0;
}
.sound-name {
  font-size: var(--fs-3);
  font-weight: 600;
  line-height: 1.3;
}
.sound-text p {
  margin-top: 6px;
  font-size: var(--fs-4);
  line-height: 1.5;
  color: var(--soft);
}
.sound-time {
  flex: none;
  padding-top: 2px;
  font-size: var(--fs-4);
  color: var(--soft);
}

/* ---------- Behind the scenes ---------- */
.making-item {
  max-width: 38rem;
}
.making-item + .making-item {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.making-heading {
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.making-text {
  margin-top: 16px;
}
.making-text p + p {
  margin-top: 1.2em;
}

/* ---------- The stage (desktop only) ---------- */
.stage { display: none; }

/* ---------- Close ---------- */
.end {
  padding: 136px var(--gutter) 32px;
}

.end-logo { display: block; }

.end-line {
  display: grid;
  gap: 8px;
  margin-top: 44px;
  font-size: var(--fs-4);
  color: var(--soft);
}
.end-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.end-links a { color: var(--ink); text-underline-offset: 0.25em; }
.end-links a:hover { text-decoration-thickness: 2px; }

.end-langs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.end-langs button {
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.end-langs button:hover {
  color: var(--ink);
}
.end-langs button[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: var(--step);
  color: var(--ink);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .end-logo .logo {
      transform-origin: 50% 100%;
      animation: flame 2.4s steps(1, end) infinite, settle linear both;
      animation-timeline: auto, view();
      animation-range: normal, entry 0% cover 45%;
    }
  }
}
@keyframes settle {
  from { transform: scale(0.94); }
  to { transform: scale(1); }
}

/* ---------- Arrival ---------- */
html.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}
html.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .sound-btn, .sound, .tab, .m-tab-ind, .btn { transition: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 64px; }
  .hero-logo { max-width: none; }
  .entry-shot { max-width: 30rem; }
  .supporter { padding: 36px; }
  .end-line { grid-template-columns: 1fr auto 1fr; align-items: baseline; }
  .end-year { text-align: right; }
}

/* ---------- Desktop: the split stage ---------- */
@media (min-width: 960px) {
  :root { --gutter: 20px; }

  .split {
    display: grid;
    grid-template-columns: 45fr 55fr;
  }

  .stage {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 14px;
    height: 100vh; /* taste-skill-ignore: fallback for browsers without svh */
    height: 100svh;
    padding: var(--gutter) 0 var(--gutter) var(--gutter);
  }

  .stage-frame {
    position: relative;
    overflow: hidden;
    background: var(--t-field-bg);
  }

  .stage-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
  }
  .stage-shot.is-on { opacity: 1; }

  /* For updates with no screenshot: the match logo alone on the stage's
     ground. Its dim tones are mixed with that ground, not the page's. */
  .stage-blank {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12%;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    --logo-k6: color-mix(in srgb, var(--t-field-dim) 55%, var(--t-field-bg));
    --logo-k7: color-mix(in srgb, var(--t-field-dim) 25%, var(--t-field-bg));
  }
  .stage-blank.is-on { opacity: 1; }

  .stage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    font-size: var(--fs-4);
  }
  .stage-caption { color: var(--soft); }
  .stage-ver { margin-right: 0.4em; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

  .stage-index { display: flex; gap: 4px; }
  .stage-index a {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 40px;
    padding: 0 8px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
  }
  .stage-index a:hover { background: var(--step); }
  .stage-index a:active { transform: scale(0.95); }
  .stage-index a[aria-current="true"] { background: var(--step); font-weight: 600; }

  .read {
    min-width: 0;
    padding: 0 clamp(32px, 4.5vw, 72px) 0 clamp(48px, 6vw, 104px);
  }

  .bar { padding-top: 8px; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100svh - 84px);
    padding: 28px 0 76px;
  }
  .hero-logo { width: 100%; max-width: 46rem; }

  .tabs-wrap { margin-top: 120px; }
  .tab-panel { margin-top: 72px; min-height: 55svh; }
  .updates { padding-bottom: 65svh; }
  .entry + .entry { margin-top: 148px; }
  .entry-shot { max-width: none; }

  /* With script running the stage shows each update's screenshot, so the
     column doesn't repeat it on screen. It stays for screen readers, which
     get the full description in reading order (the stage copies are alt=""). */
  html.js .entry-shot {
    position: absolute;
    width: 1px;
    height: 1px; /* taste-skill-ignore: visually hidden, not a rule */
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html.js .entry-date { margin-bottom: 28px; }

  @media (prefers-reduced-motion: no-preference) {
    .stage-shot.is-on { animation: drift 26s ease-in-out infinite alternate; }
  }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
