.home-page {
  overflow: hidden;
}

.home-page .section {
  position: relative;
}

.home-hero {
  padding-block: var(--space-9) var(--space-8);
}

.home-hero__grid,
.home-gameplay__top,
.home-world__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.home-hero__copy,
.home-gameplay__copy,
.home-world__copy,
.home-intro__copy,
.home-features__copy,
.home-progress__copy,
.home-gallery__copy,
.home-audience__copy,
.home-faq__copy {
  min-width: 0;
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.home-hero__copy .label,
.home-hero__copy h1,
.home-hero__copy p {
  margin: 0;
}

.home-hero h1 {
  max-width: 11.5ch;
  font-size: clamp(2.125rem, 8vw, 4rem);
}

.home-hero__lead {
  max-width: 34rem;
  font-size: var(--text-20);
  line-height: var(--leading-compact);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  width: 100%;
}

.home-hero__actions > * {
  min-width: 0;
}

.home-store-button {
  max-width: 100%;
}

.home-hero__independent,
.home-final__independent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  max-width: 34rem;
  color: var(--color-muted-graphite);
  font-size: var(--text-14);
  line-height: var(--leading-compact);
}

.home-hero__independent span {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 0.75rem;
  margin-top: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--color-fresh-mint);
  box-shadow: inset 0 0 0 2px var(--color-electric-turquoise);
}

.home-hero__figure,
.home-gameplay__figure,
.home-world__figure,
.home-gallery__item {
  min-width: 0;
  width: 100%;
  margin: 0;
}

.home-hero__figure {
  position: relative;
}

.home-hero__figure::before {
  position: absolute;
  z-index: -1;
  top: -1rem;
  right: -1rem;
  width: 55%;
  height: 55%;
  border: 2px dashed var(--color-coral-orange);
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.home-intro__copy {
  max-width: 45rem;
}

.home-intro__definition {
  padding: var(--space-5);
}

.home-intro__cards,
.home-features__grid,
.home-gameplay__steps,
.home-audience__grid,
.home-progress__cards,
.home-world__observations {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.home-intro__cards {
  max-width: 51.25rem;
  margin-top: var(--space-5);
}

.home-intro__card {
  min-width: 0;
}

.home-intro__card:nth-child(2) {
  margin-inline-start: var(--space-2);
}

.home-intro__note,
.home-audience__note {
  max-width: 45rem;
  margin-top: var(--space-5);
  border: 1px solid var(--color-fresh-mint);
  border-radius: var(--radius-md);
  background: var(--color-fresh-mint);
  padding: var(--space-4);
  color: var(--color-deep-graphite);
  font-size: var(--text-16);
  line-height: var(--leading-compact);
}

.home-gameplay,
.home-world,
.home-gallery {
  background: var(--color-pale-sky);
}

.home-gameplay__copy {
  max-width: 40rem;
}

.home-gameplay__steps {
  margin-top: var(--space-6);
}

.home-step {
  position: relative;
  min-width: 0;
  padding-top: var(--space-6);
}

.home-step__number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-coral-orange);
  color: var(--color-deep-graphite);
  font-family: var(--font-heading);
  font-weight: 800;
}

.home-gameplay__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  max-width: 100%;
  margin-top: var(--space-6);
  padding: var(--space-5);
}

.home-gameplay__cta > * {
  min-width: 0;
}

.home-gameplay__cta h3,
.home-gameplay__cta p {
  margin: 0;
}

.home-gameplay__cta div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 47.5rem;
}

.home-features__copy {
  max-width: 43.75rem;
}

.home-verified {
  display: inline-block;
  border-radius: var(--radius-full);
  background: var(--color-fresh-mint);
  padding: 0.125rem 0.5rem;
  font-size: var(--text-14);
  font-weight: 700;
}

.home-features__grid {
  margin-top: var(--space-5);
}

.home-feature {
  min-width: 0;
  border-width: 1.5px;
}

.home-feature--turquoise { border-color: var(--color-electric-turquoise); }
.home-feature--coral { border-color: var(--color-coral-orange); }
.home-feature--purple { border-color: var(--color-royal-purple); }

.home-features__source {
  max-width: 45rem;
  margin-top: var(--space-5);
}

.home-world__copy {
  max-width: 38.75rem;
}

.home-world__observations {
  margin-top: var(--space-5);
}

.home-world__observations .card {
  min-width: 0;
  padding: var(--space-4);
}

.home-progress__copy {
  max-width: 45rem;
}

.home-progress__cards {
  margin-top: var(--space-5);
}

.home-progress__learning,
.home-progress__check {
  min-width: 0;
}

.home-progress__check {
  background: var(--color-fresh-mint);
}

.home-progress__link {
  max-width: 45rem;
  margin-top: var(--space-5);
}

.home-gallery__copy {
  max-width: 42.5rem;
}

.home-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.home-gallery__item {
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.home-gallery__item img {
  width: 100%;
  object-fit: cover;
}

.home-gallery__item--route img,
.home-gallery__item--world img { aspect-ratio: 4 / 3; }
.home-gallery__item--gameplay img { aspect-ratio: 16 / 10; }

.home-audience__copy {
  max-width: 43.75rem;
}

.home-audience__grid {
  margin-top: var(--space-5);
}

.home-faq__copy {
  max-width: 45rem;
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 56.25rem;
  margin-top: var(--space-5);
}

.home-faq__list details {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.home-faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: var(--space-3) var(--space-4);
  list-style: none;
}

.home-faq__list summary::-webkit-details-marker { display: none; }

.home-faq__list summary::after {
  display: grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-pale-sky);
  color: var(--color-deep-graphite);
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
}

.home-faq__list details[open] {
  border-color: var(--color-electric-turquoise);
}

.home-faq__list details[open] summary::after { content: "−"; }

.home-faq__answer {
  padding: 0 var(--space-4) var(--space-4);
}

.home-faq__answer p { margin: 0; }

.home-final {
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
}

.home-final__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-electric-turquoise);
  border-radius: var(--radius-xl);
  background: var(--color-pale-sky);
  padding: var(--space-6) var(--space-4);
}

.home-final__panel::before,
.home-final__panel::after {
  position: absolute;
  border: 2px dashed var(--color-royal-purple);
  border-radius: 50%;
  content: "";
  opacity: 0.25;
}

.home-final__panel::before { width: 12rem; height: 12rem; top: -7rem; left: -5rem; }
.home-final__panel::after { width: 10rem; height: 10rem; right: -4rem; bottom: -6rem; border-color: var(--color-coral-orange); }

.home-final__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 42.5rem;
  margin-inline: auto;
  text-align: center;
}

.home-final__copy h2,
.home-final__copy p { margin: 0; }

.home-final__copy h2 { font-size: clamp(1.875rem, 6vw, 2.5rem); }
.home-final__copy > p:not(.home-final__independent) { max-width: 37.5rem; font-size: var(--text-20); line-height: var(--leading-compact); }
.home-final__independent { justify-content: center; max-width: 35rem; }

@media (max-width: 29.9375rem) {
  .home-hero__actions { flex-direction: column; align-items: stretch; }
  .home-hero__actions .button,
  .home-store-button { width: 100%; }
}

@media (min-width: 48rem) {
  .home-hero { padding-block: var(--space-10) var(--space-9); }

  .home-hero__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: var(--space-6);
  }

  .home-hero__grid > .home-hero__copy { grid-column: 1; width: 100%; min-width: 0; }
  .home-hero__grid > .home-hero__figure { grid-column: 2; width: 100%; min-width: 0; margin-top: var(--space-5); }

  .home-intro__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intro__cards > * { min-width: 0; width: 100%; }

  .home-gameplay__top {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }

  .home-gameplay__top > .home-gameplay__copy,
  .home-gameplay__top > .home-gameplay__figure { min-width: 0; width: 100%; }

  .home-gameplay__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-gameplay__steps > * { min-width: 0; width: 100%; }

  .home-gameplay__cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .home-gameplay__cta .home-store-button { flex: 0 1 auto; min-width: 18rem; }

  .home-features__grid,
  .home-audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-features__grid > *, .home-audience__grid > * { min-width: 0; width: 100%; }
  .home-features__grid > :last-child,
  .home-audience__grid > :last-child { grid-column: 1 / -1; }

  .home-world__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }

  .home-world__layout > .home-world__copy,
  .home-world__layout > .home-world__figure { min-width: 0; width: 100%; }

  .home-world__figure { margin-top: var(--space-5); }
  .home-world__observations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-world__observations > * { min-width: 0; width: 100%; }
  .home-world__observations > :last-child { grid-column: 1 / -1; }

  .home-progress__cards { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); }
  .home-progress__cards > * { min-width: 0; width: 100%; }

  .home-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-gallery__grid > * { min-width: 0; width: 100%; }

  .home-final__panel { padding: var(--space-8) var(--space-6); }
}

@media (min-width: 56.25rem) {
  .home-features__grid,
  .home-audience__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-features__grid > :last-child,
  .home-audience__grid > :last-child { grid-column: auto; }
}

@media (min-width: 68.75rem) {
  .home-hero__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .home-hero__grid > .home-hero__copy { grid-column: 1 / span 5; max-width: 38.75rem; }
  .home-hero__grid > .home-hero__figure { grid-column: 6 / span 3; max-width: 29.375rem; justify-self: end; }

  .home-gameplay__top {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .home-gameplay__top > .home-gameplay__copy { grid-column: 1 / span 3; }
  .home-gameplay__top > .home-gameplay__figure { grid-column: 4 / span 5; }

  .home-world__layout {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .home-world__layout > .home-world__copy { grid-column: 1 / span 3; }
  .home-world__layout > .home-world__figure { grid-column: 4 / span 5; max-width: 43.125rem; justify-self: end; }

  .home-gallery__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .home-gallery__item--route { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .home-gallery__item--gameplay { grid-column: 4 / span 5; grid-row: 1; }
  .home-gallery__item--world { grid-column: 4 / span 5; grid-row: 2; }
}

@media (max-width: 47.9375rem) {
  .home-intro__card:nth-child(2) { margin-inline-start: var(--space-2); }
  .home-hero__figure::before { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .home-gallery__item,
  .home-faq__list details,
  .home-faq__answer { transition: none; }
}
