/* ShootyCraft campaign styles. Shared by the home and game pages. */
.sc-hero,
.sc-page {
  --sc-ink: #080e1a;
  --sc-surface: #101b2b;
  --sc-muted: #b5c3d5;
  --sc-blue: #55caff;
  --sc-gold: #ffc348;
  color: #f5f8ff;
  background-color: var(--sc-ink);
}

.sc-hero {
  position: relative;
  isolation: isolate;
  padding: 10rem 1.5rem 3.5rem;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(8, 14, 26, .05) 8rem, rgba(8, 14, 26, .15) 21rem, #080e1a 37rem), url("../img/shootycraft/hero.webp");
  background-position: center top, center 5rem;
  background-size: cover, auto 32rem;
  background-repeat: no-repeat;
}

.sc-hero-content {
  max-width: 48rem;
  margin: 0 auto;
}

.sc-hero h1 {
  margin-bottom: 1.5rem;
}

.sc-logo {
  display: block;
  width: min(100%, 27rem);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px #000);
}

.sc-intro {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: #d0dbea;
  font-size: 1.15rem;
  line-height: 1.7;
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.sc-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color .15s, border-color .15s;
}

.sc-button-primary {
  background: var(--sc-gold);
  color: #111b2b;
}

.sc-button-primary:hover {
  color: #111b2b;
  background: #ffdb86;
  text-decoration: none;
}

.sc-button-secondary {
  color: #f5f8ff;
  background: rgba(8, 14, 26, .7);
  border-color: #6d829b;
}

.sc-button-secondary:hover {
  color: #fff;
  background: #1c324a;
  border-color: var(--sc-blue);
  text-decoration: none;
}

.sc-steam-widget {
  display: block;
  width: 100%;
  max-width: 646px;
  height: 190px;
  margin: 1.75rem auto 0;
  border: 0;
}

.sc-page main a:not(.sc-button) {
  color: var(--sc-blue);
}

.sc-page :focus-visible,
.sc-hero :focus-visible {
  outline: 3px solid #55caff;
  outline-offset: 5px;
}

.sc-skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1100;
  padding: .75rem 1rem;
  background: #fff;
  color: #080e1a;
}

.sc-skip-link:focus {
  top: 1rem;
}

.sc-section {
  padding: 4.5rem 0;
  scroll-margin-top: 6rem;
}

.sc-section-heading {
  max-width: 42rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.sc-section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.sc-trailer {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid #31465d;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.sc-features {
  background: var(--sc-surface);
  border-top: 1px solid #243348;
  border-bottom: 1px solid #243348;
}

.sc-feature-grid,
.sc-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.sc-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  border: 1px solid #34475e;
}

.sc-screenshot {
  display: block;
  border-radius: 4px;
}

.sc-screenshot:hover img {
  border-color: var(--sc-blue);
}

.sc-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
  margin-top: 2.5rem;
}

.sc-screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #34475e;
  border-radius: 4px;
}

.sc-feature h3,
.sc-mode h3 {
  font-size: 1.25rem;
}

.sc-feature p,
.sc-mode p {
  margin: .75rem 0 0;
  color: var(--sc-muted);
  line-height: 1.75;
}

.sc-mode {
  padding-left: 1.4rem;
  border-left: 2px solid #55caff;
}

.sc-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #243348;
  color: #b5c3d5;
  font-size: .9rem;
}

.sc-footer a {
  color: #b5c3d5;
  text-decoration: underline;
}

.sc-footer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1600px) {
  .sc-hero {
    background-size: cover, 100% auto;
  }
}

@media (max-width: 767.98px) {
  .sc-hero {
    padding: 8rem 1.25rem 2.5rem;
    background-image: linear-gradient(180deg, rgba(8, 14, 26, .05) 6rem, #080e1a 28.5rem), url("../img/shootycraft/hero.webp");
    background-size: cover, auto 24rem;
    background-position: center top, center 4.5rem;
  }

  .sc-logo {
    width: min(100%, 23rem);
  }

  .sc-feature-grid,
  .sc-mode-grid,
  .sc-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .sc-section {
    padding: 3rem 0;
  }

  .sc-feature-grid {
    gap: 2.5rem;
  }

}

@media (max-width: 399.98px) {
  .sc-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-button {
    transition: none;
  }
}
