/* Thruster Games — recreated from the original Mailchimp landing page */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text: #cfcfcf;
  --heading: #d0d0d0;
  --white: #ffffff;
  --footer-bg: #2d3f7c;
  --page-bg: #1b1a26;
  --steam: #1a9fff;
  --steam-hover: #0a7fd6;
  --crimson: #b3122e;
  --crimson-hover: #8e0c22;
  --accent: #f0b04a;
  --accent-deep: #d98a2e;
  --accent-hover: #ffc263;
  --accent-ink: #1b1a26;
  --accent-glow: rgba(240, 176, 74, 0.35);
  --panel: rgba(12, 12, 28, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --max-width: 1332px;
  --sans: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.center {
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn--steam {
  border-color: rgba(255, 224, 160, 0.6);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 22px var(--accent-glow);
}

.btn--steam:hover,
.btn--steam:focus-visible {
  border-color: #ffe7b3;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.btn--hero {
  min-height: 56px;
  padding: 14px 30px;
  border-color: rgba(255, 224, 160, 0.9);
  font-size: 19px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 0 4px var(--accent-glow);
}

.btn--hero:hover,
.btn--hero:focus-visible {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 0 5px var(--accent-glow);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 12, 30, 0.35);
  color: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.cta-row--start {
  justify-content: flex-start;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: clamp(260px, 26vw, 360px);
  background: #0b1a5c url('/assets/img/hero.jpg') no-repeat center 55% / cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(8, 8, 24, 0), rgba(8, 8, 24, 0.75));
  pointer-events: none;
}

.hero__cta {
  z-index: 1;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
}

.hero__cta .btn--ghost {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 19px;
  background: rgba(8, 8, 24, 0.55);
}

/* ---------- Logo + social band ---------- */

.band {
  background: #2a2a4a url('/assets/img/bg.jpg') no-repeat center / cover;
}

.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.band__logo {
  width: 477px;
  min-width: 0;
  flex: 0 1 auto;
}

.band .social {
  flex: none;
  flex-wrap: nowrap;
}

/* ---------- Social icons ---------- */

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 9px 0 5px;
}

.social--end {
  justify-content: flex-end;
}

.social a {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--white);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  opacity: 0.75;
  transform: translateY(-2px);
}

.social svg {
  width: 100%;
  height: 100%;
}

/* ---------- Main body ---------- */

.body {
  background: #000 url('/assets/img/bg.jpg') no-repeat center / cover;
  padding: 50px 0 100px;
}

.block {
  padding: 9px 9px 50px;
}

.block--features {
  padding-bottom: 50px;
}

h2 {
  margin: 0 0 9px;
  color: var(--heading);
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

p {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.5;
}

p.lead {
  line-height: 33px;
}

.tagline {
  margin: 0 0 18px;
  font-family: var(--serif);
  text-align: center;
}

.story__img {
  margin: 0 auto 9px;
}

/* ---------- Features ---------- */

.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 9px 9px;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature__media,
.feature__text {
  flex: 0 0 calc(50% - 9px);
}

.feature__media {
  display: flex;
  justify-content: center;
}

.feature__text {
  text-align: center;
}

.feature h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

.shadow-sm {
  box-shadow: rgba(0, 0, 0, 0.18) 7px 7px 11px 0;
}

.shadow-lg {
  box-shadow: rgba(0, 0, 0, 0.5) 10px 0 17px 0;
}

.block .feature {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Trailer ---------- */

.trailer {
  max-width: 1100px;
  margin: 0 auto 18px;
  background: #000;
  box-shadow: rgba(0, 0, 0, 0.5) 0 10px 30px 0;
}

.trailer video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ---------- Awards ---------- */

.awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.awards li {
  flex: 0 1 260px;
}

.awards img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}

/* ---------- Game details ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin: 18px 0 0;
}

.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 4px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.facts dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
}

.reqs {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.reqs summary {
  padding: 14px 18px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.reqs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  padding: 0 18px 18px;
}

.reqs h4 {
  margin: 8px 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.reqs ul {
  margin: 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.7;
}

.reqs b {
  color: var(--white);
}

/* ---------- Gallery ---------- */

.block--gallery {
  padding-bottom: 0;
}

.block--gallery h2 {
  margin-bottom: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery a {
  display: block;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.03);
}

/* ---------- Steam banner ---------- */

.steam-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 9px 50px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: rgba(0, 0, 0, 0.35) 0 10px 30px 0;
}

.steam-banner__art {
  flex: 0 1 460px;
}

.steam-banner__text {
  flex: 1 1 0;
}

.steam-banner h2 {
  text-align: left;
  text-transform: none;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 18px 0 27px;
  text-align: center;
}

.footer__title {
  margin: 9px 0 0;
  font-size: 19px;
}

.footer__contact {
  margin: 9px 0 0;
  font-size: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .feature,
  .feature--reverse {
    flex-direction: column;
    align-items: stretch;
    padding-top: 20px;
  }

  .feature__media,
  .feature__text {
    flex-basis: auto;
  }

  .steam-banner {
    flex-direction: column;
    text-align: center;
  }

  .steam-banner__art {
    flex-basis: auto;
  }

  .steam-banner h2 {
    text-align: center;
  }

  .cta-row--start {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .band__inner {
    flex-direction: column;
    gap: 0;
  }

  .band__logo {
    width: 100%;
    max-width: 360px;
  }

  .band .social {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 0 0 12px;
  }

  .band .social a {
    width: 32px;
    height: 32px;
  }

  .social--end {
    justify-content: center;
  }

  .block {
    padding: 9px 0 40px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }

  p.lead {
    line-height: 1.5;
  }

  .feature {
    padding-left: 0;
    padding-right: 0;
  }

  .feature h3 {
    font-size: 21px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn {
    font-size: 15px;
    padding: 10px 18px;
  }

  .hero__cta .btn--ghost {
    display: none;
  }

  .awards {
    gap: 20px;
  }

  .awards li {
    flex-basis: 70%;
  }

  .facts,
  .reqs__grid {
    grid-template-columns: 1fr;
  }

  .steam-banner {
    margin: 0 0 40px;
    padding: 16px;
  }

  .steam-banner .btn {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social a,
  .gallery img,
  .btn {
    transition: none;
  }
}
