:root {
  color-scheme: dark;
  --bg: #141821;
  --surface: #202633;
  --surface-soft: #2a3140;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #aab3c2;
  --dim: #737d8d;
  --accent: #4d8dff;
  --lime: #96ef5b;
  --orange: #ff9f3d;
  --red: #ff5d63;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.store-back,
.platforms,
.status-row,
.section-heading,
.carousel-controls {
  display: flex;
  align-items: center;
}

.store-back {
  gap: 8px;
  padding: 8px 10px 8px 8px;
  margin-left: -8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.store-back:hover,
.store-back:focus-visible {
  color: var(--accent);
  background: rgba(77, 141, 255, 0.1);
}

.store-back svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 18, 25, 0.98), rgba(16, 20, 28, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 22px),
    #10131b;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(77, 141, 255, 0.18), transparent 38%),
    radial-gradient(circle at 82% 4%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 1px);
  opacity: 0.62;
}

.hero-copy,
.hero-build {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: clamp(28px, 5vw, 58px);
}

.hero-build {
  display: flex;
  align-self: start;
  padding: clamp(20px, 3.5vw, 34px);
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-heading > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

.app-icon {
  position: relative;
  flex: 0 0 auto;
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #151a20;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.eyebrow,
.studio,
.status-row,
.facts dt,
.news-date,
.developers small,
.build-label,
.build-meta dt {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
p,
strong,
small,
dt,
dd {
  overflow-wrap: break-word;
}

h1 {
  max-width: 15ch;
  margin-bottom: 8px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: 22px;
  letter-spacing: 0;
}

.studio {
  margin: 0;
}

.status-row {
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 20px;
  font-size: 14px;
}

.status-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.status-row .status-pill {
  color: var(--lime);
  border-color: rgba(150, 239, 91, 0.38);
  background: transparent;
  font-weight: 800;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #dbe4f2;
  font-size: 19px;
  line-height: 1.55;
}

.build-card {
  display: grid;
  align-self: start;
  width: 100%;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 11, 17, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.build-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.build-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.build-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.build-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.build-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.build-meta dt,
.build-meta dd {
  margin: 0;
}

.build-meta dt {
  font-size: 13px;
}

.build-meta dd {
  color: #f3f7ff;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.build-actions {
  display: grid;
  justify-items: stretch;
  gap: 18px;
}

.download-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 8px;
  color: #071013;
  background: var(--accent);
  font-weight: 900;
  transition: background 0.18s ease, transform 0.18s ease;
}

.download-button:hover,
.download-button:focus-visible {
  background: #78a8ff;
  transform: translateY(-1px);
}

.changes-button {
  justify-self: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.changes-button,
.inline-link,
.secondary-link {
  position: relative;
  overflow: hidden;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.changes-button:hover,
.changes-button:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  color: #a9c7ff;
  background: rgba(77, 141, 255, 0.1);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.52s ease-out;
}

.download-button .ripple {
  background: rgba(7, 16, 19, 0.2);
}

.changes-button .ripple,
.inline-link .ripple,
.secondary-link .ripple {
  background: rgba(169, 199, 255, 0.22);
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.changes-button,
.inline-link,
.secondary-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-link::after,
.secondary-link::after,
.text-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.text-button::after {
  transform: translateY(-2px) rotate(45deg);
}

.text-button.is-expanded::after {
  transform: translateY(2px) rotate(225deg);
}

.download-button svg,
.icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.platforms {
  flex-wrap: wrap;
  gap: 8px;
}

.platform-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f3f7ff;
  font-size: 14px;
  font-weight: 800;
}

.platform-icon {
  width: 18px;
  height: 18px;
  color: var(--lime);
  fill: currentColor;
}

.store-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.side-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}


.main-column,
.side-column,
.section-block,
.info-panel,
.screenshot-strip,
.news-list,
.change-list,
.description-text {
  min-width: 0;
}

.section-block,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 32, 0.82);
}

.section-block {
  padding: 24px;
  margin-bottom: 22px;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.description-block h2,
.info-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.title-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
  fill: currentColor;
}

.update-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.version-chip {
  padding: 6px 9px;
  border: 1px solid rgba(77, 141, 255, 0.28);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(77, 141, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.carousel-controls {
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-soft);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--accent);
  border-color: rgba(77, 141, 255, 0.42);
  background: rgba(77, 141, 255, 0.1);
}

.screenshot-strip {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.shot {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  height: clamp(240px, 34vw, 360px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  scroll-snap-align: start;
  background: #101522;
  cursor: zoom-in;
}

.shot img {
  width: auto;
  height: 100%;
  max-width: min(78vw, 680px);
  object-fit: contain;
  display: block;
}

.has-open-lightbox {
  overflow: hidden;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 72px;
  background: rgba(5, 7, 12, 0.86);
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox-image {
  display: block;
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 144px);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #0a0d14;
  box-shadow: var(--shadow);
}

.screenshot-lightbox-button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(32, 38, 51, 0.92);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.screenshot-lightbox-button:hover,
.screenshot-lightbox-button:focus-visible {
  color: var(--accent);
  border-color: rgba(77, 141, 255, 0.42);
  background: rgba(77, 141, 255, 0.16);
}

.screenshot-lightbox-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.screenshot-lightbox-close {
  top: 20px;
  right: 20px;
}

.screenshot-lightbox-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.screenshot-lightbox-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.description-text {
  max-height: 5.1em;
  overflow: hidden;
  color: #dce4ef;
  line-height: 1.7;
}

.description-text p {
  margin-bottom: 0;
  white-space: pre-line;
}

.description-text.is-expanded {
  max-height: none;
}

.text-button,
.inline-link,
.secondary-link {
  color: var(--accent);
  font-weight: 800;
}

.secondary-link {
  padding: 6px 8px;
  margin: -6px -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button {
  padding: 0;
  margin-top: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button[hidden] {
  display: none;
}

.secondary-link[hidden] {
  display: none;
}

.news-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 42px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.news-item:hover,
.news-item:focus-visible {
  border-color: rgba(77, 141, 255, 0.42);
  background: rgba(77, 141, 255, 0.08);
  box-shadow: 0 16px 34px rgba(77, 141, 255, 0.08);
}

.news-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  opacity: 0;
  transform: translate(-8px, -50%) rotate(-45deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.news-item:hover::after,
.news-item:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(-45deg);
}

.news-preview {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: #101522;
}

.news-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.news-body span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.change-list {
  display: grid;
  max-height: 4.65em;
  overflow: hidden;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #dce4ef;
  line-height: 1.55;
  white-space: pre-line;
}

.change-list.is-expanded {
  max-height: none;
}

.info-panel {
  padding: 20px;
  margin-bottom: 16px;
}

.info-panel h2 {
  margin-bottom: 16px;
}

.info-panel summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: -8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.info-panel summary::-webkit-details-marker {
  display: none;
}

.info-panel summary::marker {
  content: "";
}

.info-panel summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.info-panel summary:hover,
.info-panel summary:focus-visible {
  color: var(--accent);
  background: rgba(77, 141, 255, 0.08);
}

.info-panel[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.facts {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts dt,
.facts dd {
  margin: 0;
}

.facts dd {
  text-align: right;
  font-weight: 800;
}

.developers ul {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.developer-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.developer-photo {
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
  background: #101522;
}

.developer-initials {
  display: grid;
  place-items: center;
  color: #10140f;
  background: var(--lime);
  font-weight: 900;
}

.developer-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.developers a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-build {
    padding-top: 0;
    width: 100%;
  }

  .build-card {
    max-width: none;
  }

  .side-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .topbar {
    min-height: 40px;
  }

  .hero {
    gap: 0;
    margin-top: 16px;
  }

  .app-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .app-icon {
    width: 88px;
    border-radius: 20px;
  }

  h1 {
    max-width: none;
    font-size: 36px;
    line-height: 1.05;
  }

  h2 {
    font-size: 20px;
  }

  .hero-copy,
  .hero-build,
  .section-block,
  .info-panel {
    padding: 16px;
  }

  .hero-build {
    padding-top: 0;
  }

  .status-row {
    margin: 22px 0 16px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .build-card {
    max-width: none;
    gap: 16px;
    padding: 14px;
  }

  .build-meta {
    gap: 0;
  }

  .build-meta div {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .build-meta dd {
    min-width: 0;
    text-align: right;
  }

  .platform-name {
    justify-content: flex-end;
  }

  .download-button {
    min-height: 50px;
  }

  .store-grid {
    gap: 18px;
    margin-top: 18px;
  }

  .section-block {
    margin-bottom: 18px;
  }

  .section-heading {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-heading h2,
  .description-block h2,
  .info-panel summary {
    gap: 8px;
  }

  .update-title {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .inline-link,
  .secondary-link,
  .changes-button {
    max-width: 100%;
  }

  .title-icon {
    width: 20px;
    height: 20px;
  }

  .screenshot-strip {
    gap: 10px;
  }

  .shot {
    min-width: 0;
    height: clamp(210px, 58vw, 300px);
  }

  .shot img {
    max-width: 86vw;
  }

  .screenshot-lightbox {
    padding: 64px 12px 84px;
  }

  .screenshot-lightbox-image {
    max-height: calc(100vh - 148px);
  }

  .screenshot-lightbox-button {
    width: 42px;
    height: 42px;
  }

  .screenshot-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .screenshot-lightbox-prev {
    top: auto;
    bottom: 18px;
    left: calc(50% - 52px);
    transform: none;
  }

  .screenshot-lightbox-next {
    top: auto;
    right: calc(50% - 52px);
    bottom: 18px;
    transform: none;
  }

  .news-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 30px 12px 12px;
  }

  .news-preview {
    width: 72px;
  }

  .news-body {
    gap: 4px;
  }

  .news-body span:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .news-date {
    font-size: 12px;
  }

  .facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .facts dd {
    text-align: left;
  }

  .developer-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .developer-photo {
    width: 48px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
  }

  h1 {
    font-size: 32px;
  }

  .hero-copy,
  .hero-build,
  .section-block,
  .info-panel {
    padding: 14px;
  }

  .build-meta div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .build-meta dd,
  .platform-name {
    text-align: left;
    justify-content: flex-start;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 30px;
  }

  .news-preview {
    width: 100%;
    height: 132px;
  }
}
