:root {
  color-scheme: dark;
  background: #050607;
  color: #f6f7f7;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: #050607;
}

.poster-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #050607;
}

.poster-download-link {
  position: absolute;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgb(246 247 247 / 22%);
  border-radius: 999px;
  background: rgb(5 6 7 / 84%);
  color: #f6f7f7;
  font-size: 0.8125rem;
  line-height: 1.25;
  text-decoration: none;
  backdrop-filter: blur(0.5rem);
}

.poster-download-link:hover {
  border-color: rgb(246 247 247 / 52%);
  background: rgb(5 6 7 / 94%);
}

.poster-download-link:focus-visible,
.download-back:focus-visible {
  outline: 2px solid #f6f7f7;
  outline-offset: 3px;
}

.download-page {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
  padding-block: clamp(1rem, 4vw, 2.5rem) 4rem;
}

.download-header {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.download-brand {
  color: #f6f7f7;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.download-back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 0.75rem;
  border-radius: 0.5rem;
  color: #b7bdc0;
  font-size: 0.875rem;
  text-decoration: none;
}

.download-back:hover {
  color: #f6f7f7;
}

.download-content {
  max-width: 48rem;
  padding-block: clamp(4rem, 12vw, 8rem) 3.5rem;
}

.download-eyebrow,
.platform-heading {
  color: #a6adb0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.download-title {
  margin: 1rem 0 1.25rem;
  color: #f6f7f7;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.download-summary {
  max-width: 40rem;
  margin: 0;
  color: #b7bdc0;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  line-height: 1.65;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1.75rem 0 0;
  color: #f6f7f7;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.5;
}

.availability::before {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c9785a;
  content: "";
}

.platforms {
  padding-block: 1.25rem 2.5rem;
}

.platform-heading {
  margin: 0 0 0.5rem;
}

.platform-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #292d2f;
  list-style: none;
}

.platform-item {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(11rem, 1.4fr) auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid #292d2f;
}

.platform-name {
  color: #f6f7f7;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
}

.platform-detail,
.platform-status {
  margin: 0;
  color: #a6adb0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.release-note {
  max-width: 49rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #292d2f;
  color: #a6adb0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.release-note strong {
  color: #d5d9da;
  font-weight: 550;
}

@media (max-width: 40rem) {
  .download-page {
    width: min(100% - 2rem, 68rem);
  }

  .download-content {
    padding-block: 4rem 2.5rem;
  }

  .platform-item {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
  }

  .platform-detail {
    grid-column: 1;
  }

  .platform-status {
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: end;
  }
}

.poster-page img {
  display: block;
  width: min(100vw, 177.7778svh);
  height: min(100svh, 56.25vw);
  object-fit: contain;
  object-position: center;
}

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