/*
 * StarPath game start-screen pilot.
 * Pages must opt in with body.game-start-page and #start-screen.
 */

body.game-start-page #start-screen.start-screen {
  min-height: 660px;
  align-items: center;
  gap: 8%;
}

body.game-start-page #start-screen .hero-copy {
  flex: 1.05;
}

body.game-start-page #start-screen .intro {
  max-width: 555px;
  margin: 25px 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

body.game-start-page #start-screen .feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 30px;
}

body.game-start-page #start-screen .feature-row span {
  padding: 9px 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

body.game-start-page #start-screen .install-card {
  max-width: 410px;
  margin-top: 24px;
  padding: 13px 17px;
  display: flex;
  gap: 5px;
  flex-direction: column;
  color: #40366f;
  background: #ece9ff;
  border: 2px solid #d2cdf7;
  border-radius: 16px;
  font-size: 13px;
}

body.game-start-page #start-screen .install-card strong {
  font-size: 15px;
}

body.game-start-page #start-screen .hero-art {
  position: relative;
  flex: .95;
  min-height: 520px;
  display: grid;
  place-items: center;
  background: #dcd8ff;
  border-radius: 46% 54% 45% 55% / 55% 42% 58% 45%;
}

body.game-start-page #start-screen .hero-art img {
  width: min(90%, 470px);
  filter: drop-shadow(0 22px 15px rgba(68, 52, 143, .16));
  animation: bob 3.2s ease-in-out infinite;
}

body.game-start-page #start-screen .speech-bubble {
  position: absolute;
  top: 16%;
  right: -1%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(130px, 14vw, 190px);
  aspect-ratio: 520 / 190;
  padding: 0 18%;
  color: #0F2B5B;
  background: url("../assets/Speech-bubble.svg") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 800 clamp(19px, 2vw, 26px)/1 "Baloo 2", sans-serif;
  text-align: center;
  white-space: nowrap;
  transform: rotate(4deg);
  pointer-events: none;
}

body.game-start-page #start-screen .speech-bubble::after {
  content: none;
}

body.game-start-page #start-screen .speech-bubble small {
  display: block;
  color: var(--muted);
  font: 700 11px "Nunito";
}

body.game-start-page #start-screen .float-shape {
  position: absolute;
  color: var(--yellow);
  font-size: 30px;
}

body.game-start-page #start-screen .shape-one {
  left: 4%;
  top: 18%;
}

body.game-start-page #start-screen .shape-two {
  right: 9%;
  bottom: 18%;
  color: var(--purple);
}

@media (max-width: 780px) {
  body.game-start-page #start-screen.start-screen {
    padding: 40px 0 70px;
    flex-direction: column;
    text-align: center;
  }

  body.game-start-page #start-screen .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.game-start-page #start-screen .hero-art {
    width: min(100%, 480px);
    min-height: 390px;
  }

  body.game-start-page #start-screen .speech-bubble {
    right: 2%;
  }
}

@media (max-width: 460px) {
  body.game-start-page #start-screen .hero-art {
    min-height: 330px;
  }

  body.game-start-page #start-screen .speech-bubble {
    top: 8%;
    width: clamp(112px, 34vw, 150px);
    font-size: clamp(17px, 5vw, 20px);
  }
}

@media (display-mode: standalone) {
  body.game-start-page #start-screen .install-card {
    display: none !important;
  }
}
