.changelog-page {
  --changelog-shell: 1240px;
  background: #080b0e;
  color: var(--b-text, #f4f5f1);
}

.changelog-page main {
  overflow: hidden;
}

.changelog-shell {
  width: min(var(--changelog-shell), calc(100% - 48px));
  margin-inline: auto;
}

.changelog-section-label {
  color: var(--b-yellow, #f7dc24);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.changelog-hero {
  position: relative;
  min-height: 590px;
  padding-top: 84px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--b-line, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #090d11;
  background-size: 64px 64px;
}

.changelog-hero__glow {
  position: absolute;
  width: 680px;
  height: 680px;
  top: -190px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 220, 36, 0.16), rgba(247, 220, 36, 0.035) 38%, transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}

.changelog-hero__inner {
  position: relative;
  min-height: 505px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 72px;
}

.changelog-hero__copy {
  padding: 72px 0 82px;
}

.changelog-hero__copy h1 {
  max-width: 820px;
  margin: 0 0 26px;
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: clamp(3.7rem, 6.2vw, 6.7rem);
  line-height: 0.89;
  letter-spacing: -0.07em;
}

.changelog-hero__copy h1 em {
  color: var(--b-yellow, #f7dc24);
  font-style: normal;
}

.changelog-hero__copy > p:last-child {
  max-width: 660px;
  color: var(--b-muted, #a4aab2);
  font-size: 1.08rem;
  line-height: 1.72;
}

.changelog-hero__signal {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.changelog-signal__ring {
  position: absolute;
  border: 1px solid rgba(247, 220, 36, 0.2);
  border-radius: 50%;
}

.changelog-signal__ring::before,
.changelog-signal__ring::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b-yellow, #f7dc24);
  box-shadow: 0 0 20px rgba(247, 220, 36, 0.8);
}

.changelog-signal__ring::before {
  top: 14%;
  left: 14%;
}

.changelog-signal__ring::after {
  right: 6%;
  bottom: 25%;
}

.changelog-signal__ring--outer {
  width: 400px;
  height: 400px;
}

.changelog-signal__ring--inner {
  width: 270px;
  height: 270px;
  border-style: dashed;
}

.changelog-signal__core {
  position: relative;
  z-index: 2;
  width: 142px;
  height: 182px;
  display: grid;
  place-items: center;
  color: #11130d;
  border-radius: 22px;
  background: var(--b-yellow, #f7dc24);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(247, 220, 36, 0.12);
  transform: rotate(5deg);
}

.changelog-signal__core::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(17, 19, 13, 0.28);
  border-radius: 15px;
}

.changelog-signal__core i {
  font-size: 3.1rem;
}

.changelog-signal__version {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 78px;
  min-width: 168px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(13, 17, 22, 0.94);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}

.changelog-signal__version small,
.changelog-signal__version strong {
  display: block;
}

.changelog-signal__version small {
  margin-bottom: 5px;
  color: #787f88;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.changelog-signal__version strong {
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: 1.35rem;
}

.changelog-browser {
  padding: 72px 0 130px;
  background: #0a0e12;
}

.changelog-platforms {
  margin-top: -112px;
  margin-bottom: 100px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0e1318;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.changelog-platform {
  min-height: 118px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  color: var(--b-text, #f4f5f1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 180ms ease, color 180ms ease;
}

.changelog-platform:last-child {
  border-right: 0;
}

.changelog-platform:hover {
  background: rgba(255, 255, 255, 0.035);
}

.changelog-platform.is-active {
  color: #11130d;
  background: var(--b-yellow, #f7dc24);
}

.changelog-platform > span:first-child {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.15rem;
}

.changelog-platform.is-active > span:first-child {
  border-color: rgba(17, 19, 13, 0.25);
}

.changelog-platform small,
.changelog-platform strong {
  display: block;
}

.changelog-platform small {
  margin-bottom: 4px;
  color: #858c94;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-platform.is-active small {
  color: rgba(17, 19, 13, 0.62);
}

.changelog-platform strong {
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: 1.25rem;
}

.changelog-browser__heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 410px);
  align-items: end;
  gap: 50px;
}

.changelog-browser__heading h2 {
  margin: 8px 0 12px;
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.changelog-browser__heading > div > p:last-child {
  color: var(--b-muted, #a4aab2);
}

.changelog-search {
  height: 58px;
  padding: 0 14px 0 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #0d1217;
  transition: border-color 180ms ease;
}

.changelog-search:focus-within {
  border-color: rgba(247, 220, 36, 0.7);
}

.changelog-search i {
  color: var(--b-yellow, #f7dc24);
}

.changelog-search input {
  min-width: 0;
  color: var(--b-text, #f4f5f1);
  padding: 0;
  line-height: 1.4;
}

.changelog-search input::placeholder {
  color: #a4aab2;
}

.changelog-search kbd {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #8d949b;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: #151b21;
  font: 700 0.75rem/1 Inter, sans-serif;
}

.changelog-browser {
  --release-rail-gutter: 26px;
  --release-gap: 14px;
  --release-inset: clamp(16px, 2.4vw, 30px);
  --release-marker-top: calc(var(--release-inset) + 9px);
}

.changelog-release-toolbar {
  margin-top: 56px;
  padding: 0 var(--release-inset) 14px calc(var(--release-rail-gutter) + var(--release-inset));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #727981;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-release-toolbar span {
  color: var(--b-text, #f4f5f1);
}

.changelog-release-list {
  display: grid;
  gap: var(--release-gap);
  padding-inline-start: var(--release-rail-gutter);
}

.changelog-release {
  position: relative;
  display: grid;
  grid-template-columns: minmax(105px, 16%) minmax(0, 1fr) 46px;
  align-items: start;
  gap: clamp(14px, 2.1vw, 28px);
  padding: var(--release-inset);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.changelog-release[hidden] {
  display: none;
}

.changelog-release__rail {
  position: absolute;
  inset-inline-start: calc(8px - var(--release-rail-gutter));
  top: calc(-1px - var(--release-gap));
  bottom: -1px;
  width: 1px;
  pointer-events: none;
}

.changelog-release__rail::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.changelog-release:nth-child(1 of :not([hidden])) .changelog-release__rail::before {
  top: calc(var(--release-gap) + var(--release-marker-top));
}

.changelog-release:nth-last-child(1 of :not([hidden])) .changelog-release__rail::before {
  bottom: auto;
  height: calc(var(--release-gap) + var(--release-marker-top));
}

.changelog-release:nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden])) .changelog-release__rail::before {
  display: none;
}

.changelog-release__rail span {
  position: absolute;
  top: calc(var(--release-gap) + var(--release-marker-top));
  inset-inline-start: -6px;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border: 3px solid #0a0e12;
  border-radius: 50%;
  background: #69717a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.changelog-release.is-latest .changelog-release__rail span {
  background: var(--b-yellow, #f7dc24);
  box-shadow: 0 0 0 1px rgba(247, 220, 36, 0.5), 0 0 22px rgba(247, 220, 36, 0.45);
}

.changelog-release__version {
  min-width: 0;
}

.changelog-release__version small,
.changelog-release__version strong {
  display: block;
}

.changelog-release__version small {
  color: #747b84;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.changelog-release__version strong {
  margin-top: 5px;
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.changelog-release__version .changelog-release__kind {
  color: var(--b-muted, #a4aab2);
  overflow-wrap: anywhere;
}

.changelog-release__version > span {
  display: block;
  width: fit-content;
  margin-top: 10px;
  padding: 4px 8px;
  color: #17180f;
  border-radius: 10px;
  background: var(--b-yellow, #f7dc24);
  font-size: 0.62rem;
  font-weight: 800;
}

.changelog-release__content {
  min-width: 0;
  max-width: 810px;
  overflow-wrap: anywhere;
}

.changelog-release__content > p:first-child {
  margin-bottom: 12px;
  color: #767e87;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.changelog-release__content h3 {
  margin-bottom: 12px;
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.changelog-release__content h3 a {
  color: var(--b-text, #f4f5f1);
}

.changelog-release__content h3 a:hover {
  color: var(--b-yellow, #f7dc24);
}

.changelog-release__content > p:last-child {
  display: -webkit-box;
  overflow: hidden;
  color: var(--b-muted, #a4aab2);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.changelog-release__open {
  width: 46px;
  height: 46px;
  justify-self: end;
  display: grid;
  place-items: center;
  color: var(--b-text, #f4f5f1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.changelog-release__open:hover {
  color: #11130d;
  border-color: var(--b-yellow, #f7dc24);
  background: var(--b-yellow, #f7dc24);
}

.changelog-release__open:focus-visible {
  outline: 2px solid var(--b-yellow, #f7dc24);
  outline-offset: 3px;
}

.changelog-no-results,
.changelog-empty {
  padding: 92px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #0c1116;
  background-size: 42px 42px;
}

.changelog-no-results {
  margin-top: 36px;
}

.changelog-no-results i,
.changelog-empty__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: var(--b-yellow, #f7dc24);
  border: 1px solid rgba(247, 220, 36, 0.35);
  border-radius: 10px;
  background: rgba(247, 220, 36, 0.06);
  font-size: 1.45rem;
}

.changelog-empty {
  margin-top: 52px;
}

.changelog-empty h3,
.changelog-no-results h3 {
  margin: 10px 0 16px;
  font-family: var(--b-display, Poppins, sans-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.changelog-empty > p,
.changelog-no-results p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--b-muted, #a4aab2);
  line-height: 1.7;
}

.changelog-empty .battly-button {
  margin-top: 30px;
}

@media (max-width: 980px) {
  .changelog-hero__inner {
    grid-template-columns: 1fr 340px;
    gap: 30px;
  }

  .changelog-signal__ring--outer {
    width: 330px;
    height: 330px;
  }

  .changelog-signal__ring--inner {
    width: 230px;
    height: 230px;
  }

  .changelog-browser__heading {
    grid-template-columns: 1fr;
  }

  .changelog-search {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .changelog-shell {
    width: min(100% - 32px, var(--changelog-shell));
  }

  .changelog-hero {
    min-height: auto;
    padding-top: 66px;
  }

  .changelog-hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .changelog-hero__copy {
    padding: 74px 0 16px;
  }

  .changelog-hero__copy h1 {
    font-size: clamp(3.25rem, 16vw, 4.8rem);
  }

  .changelog-hero__copy > p:last-child {
    font-size: 0.94rem;
  }

  .changelog-hero__signal {
    min-height: 330px;
    transform: scale(0.8);
  }

  .changelog-browser {
    padding-top: 52px;
    --release-rail-gutter: 20px;
  }

  .changelog-platforms {
    margin-top: -80px;
    margin-bottom: 70px;
    grid-template-columns: 1fr;
  }

  .changelog-platform {
    min-height: 94px;
    padding: 16px;
    grid-template-columns: 44px 1fr auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .changelog-platform:last-child {
    border-bottom: 0;
  }

  .changelog-platform > span:first-child {
    width: 44px;
    height: 44px;
  }

  .changelog-browser__heading {
    gap: 28px;
  }

  .changelog-release-toolbar {
    margin-top: 42px;
  }

  .changelog-release-toolbar p:last-child {
    display: none;
  }

  .changelog-release {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 14px;
  }

  .changelog-release__version {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
  }

  .changelog-release__version small:not(.changelog-release__kind) {
    display: none;
  }

  .changelog-release__version strong {
    margin: 0;
    font-size: 1.35rem;
  }

  .changelog-release__version > span {
    margin-top: 0;
  }

  .changelog-release__content h3 {
    font-size: 1.28rem;
  }

  .changelog-release__content > p:last-child {
    -webkit-line-clamp: 3;
  }

  .changelog-release__open {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .changelog-platform,
  .changelog-release__open,
  .changelog-version-nav a > i {
    transition: none;
  }
}
