/* V40: an independent cover that states the play promise before the first tap. */

.landing-backdrop {
  --landing-art: url("../assets/meowa/v40/cover-landscape.png");
  background: #050812;
}

.landing-backdrop::before {
  background:
    linear-gradient(rgb(4 7 15 / 28%), rgb(2 4 10 / 56%)),
    var(--landing-art) center / cover no-repeat;
  filter: blur(18px) brightness(.58) saturate(.78) contrast(.96);
  transform: scale(1.05);
}

.landing-backdrop img {
  object-fit: cover;
  object-position: center;
  filter: brightness(.88) saturate(.96) contrast(1.03);
}

.landing-foreground,
.landing-cast {
  display: none !important;
}

.landing-surface::after {
  background: linear-gradient(
    90deg,
    rgb(3 6 14 / 92%) 0%,
    rgb(3 6 14 / 78%) 24%,
    rgb(3 6 14 / 38%) 39%,
    rgb(3 6 14 / 8%) 54%,
    transparent 68%
  );
}

.landing-copy {
  top: clamp(44px, 9.5vh, 84px);
  left: 6%;
  width: min(520px, 38vw);
  padding: 8px 0;
}

.landing-kicker {
  color: #e6bb69;
  font-size: 13px;
  letter-spacing: .18em;
}

.landing-copy h1 {
  font-size: clamp(42px, 4.8vw, 66px);
  letter-spacing: .035em;
  white-space: nowrap;
}

.landing-copy p {
  max-width: 460px;
  margin-top: 15px;
  color: #f6e7c8;
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 600;
  letter-spacing: .04em;
}

.landing-actions {
  top: clamp(250px, 39vh, 318px);
  left: 6%;
  width: min(360px, 32vw);
}

@media (max-width: 720px) and (orientation: portrait) {
  .landing-backdrop {
    --landing-art: url("../assets/meowa/v40/cover-portrait.png");
  }

  .landing-backdrop img {
    object-position: center;
  }

  .landing-surface::after {
    background: linear-gradient(
      180deg,
      rgb(3 6 14 / 82%) 0%,
      rgb(3 6 14 / 34%) 22%,
      rgb(3 6 14 / 4%) 44%,
      rgb(3 6 14 / 10%) 68%,
      rgb(3 6 14 / 90%) 100%
    );
  }

  .landing-copy {
    top: max(24px, calc(env(safe-area-inset-top) + 18px));
    left: 18px;
    width: calc(100% - 36px);
    padding: 0;
    text-align: center;
  }

  .landing-kicker {
    margin-bottom: 7px;
    font-size: 11px;
    letter-spacing: .14em;
  }

  .landing-copy h1 {
    font-size: clamp(33px, 9.8vw, 43px);
    letter-spacing: .02em;
  }

  .landing-copy p {
    max-width: 340px;
    margin: 9px auto 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .landing-actions {
    top: auto;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 16px;
    width: auto;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  .landing-surface::after {
    background: linear-gradient(
      90deg,
      rgb(3 6 14 / 94%) 0%,
      rgb(3 6 14 / 78%) 26%,
      rgb(3 6 14 / 28%) 44%,
      transparent 62%
    );
  }

  .landing-copy {
    top: 18px;
    left: 5%;
    width: 44%;
  }

  .landing-copy h1 {
    font-size: clamp(30px, 4.6vw, 40px);
  }

  .landing-actions {
    top: 142px;
    left: 5%;
    width: min(250px, 32%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-backdrop::before {
    transform: none;
  }
}
