:root {
  --home-deck-min: 282px;
  --home-deck-max: 365px;
  --home-deck-offset: 482px;
  --home-annotation-size: 13px;
  --home-platform-size: 12px;
}

.home-symbols {
  position: absolute;
  overflow: hidden;
}

.stage .pulse::after {
  animation: none;
  opacity: 0;
}

.stage .cta {
  margin-top: 22px;
}

.stage .deck__row {
  height: clamp(var(--home-deck-min), calc(100svh - var(--home-deck-offset)), var(--home-deck-max));
  overflow-y: clip;
}

.stage .scene,
.stage .scene__go {
  transition: none;
}

.stage .scene:hover,
.stage .scene:hover .scene__go {
  transform: none;
}

.stage .scene__head {
  position: static;
  padding: 24px 24px 0 26px;
}

.stage .scene .tag {
  text-decoration: none;
}

.home-scene-target::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: var(--radius-xl);
}

.home-scene-target:focus-visible::after {
  outline: 2px solid var(--text);
  outline-offset: -5px;
}

.scene--cobalt .home-scene-target:focus-visible::after {
  outline-color: var(--on-color);
}

.home-scene-alternate {
  position: relative;
  z-index: 3;
}

.stage .scene .tag:hover {
  text-decoration: underline;
}

.home-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  list-style: none;
  padding-inline-start: 0;
  margin-block: 0;
}

.home-step-index {
  display: block;
  margin-bottom: 15px;
  color: var(--muted);
  font: var(--home-annotation-size)/1.5 var(--font-mono);
}

.home-tail {
  margin-top: 26px;
  text-align: center;
  font-weight: 600;
}

.home-download-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.home-download-grid .client-card {
  padding: clamp(16px, 1.65vw, 24px);
}

.home-download-grid .client-card__head {
  gap: 9px;
}

.home-reading {
  margin-top: clamp(30px, 5vw, 64px);
}

.home-reading > h3:first-child {
  margin-top: 0;
}

.settings__body > [role="tablist"] {
  grid-column: 1;
  grid-row: 1;
}

.settings__body > [role="tabpanel"] {
  grid-column: 2;
  grid-row: 1;
}

.home-source {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
}

.home-source-command .copy-row {
  margin-top: 0;
}

.home-source-command p {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .stage .deck__row {
    height: 315px;
    overflow-y: hidden;
  }
}

@media (max-width: 768px) {
  .settings__body > [role="tabpanel"] {
    grid-column: 1;
    grid-row: 2;
  }

  .home-source {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .stage .platforms {
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }

  .stage .platforms a {
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    gap: 4px;
    font-size: var(--home-platform-size);
  }

  .stage .deck__row {
    flex-direction: column;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    gap: 16px;
    padding-inline: var(--gutter);
  }

  .stage .scene {
    flex: none;
    height: auto;
    padding-bottom: 16px;
  }

  .stage .scene__head {
    padding-inline: 16px;
  }

  .stage .sheet {
    position: relative;
    inset: auto;
    margin: 20px 16px 0;
    border-radius: var(--radius-lg);
  }

  .stage .rule {
    padding-inline: 16px;
  }
}