/* =========================================================
   ECHO — OUR GAMES
   ========================================================= */

.games-page {
  width: min(100% - 52px, 1500px);
  margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.games-hero {
  min-height: 520px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 80px 0 90px;

  border-bottom: 1px solid var(--border);
}

.games-hero h1 {
  margin: 12px 0 24px;

  font-size: clamp(70px, 9vw, 135px);
  line-height: .84;
  letter-spacing: -.06em;
}

.games-hero h1 span {
  color: var(--gold);
}

.games-lead {
  max-width: 760px;

  margin: 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.7;
}


/* =========================================================
   GAME FEATURES
   ========================================================= */

.game-list {
  padding: 80px 0;
}

.game-feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;

  min-height: 560px;

  border: 1px solid var(--border);

  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,.025),
      transparent 55%
    );

  margin-bottom: 24px;

  overflow: hidden;
}

.game-feature-reverse {
  grid-template-columns: .85fr 1.15fr;
}

.game-feature-reverse .game-image {
  order: 2;
}

.game-feature-reverse .game-content {
  order: 1;
}


/* =========================================================
   GAME IMAGE
   ========================================================= */

.game-image {
  position: relative;

  min-height: 560px;

  overflow: hidden;

  background: #080808;
}

.game-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.05),
      rgba(0,0,0,.35)
    );
}

.game-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform .5s ease;
}

.game-feature:hover .game-image img {
  transform: scale(1.025);
}


/* =========================================================
   GAME CONTENT
   ========================================================= */

.game-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 60px;
}

.game-number {
  margin: 0 0 18px;

  color: var(--gold);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: .15em;
}

.game-content h2 {
  margin: 0 0 26px;

  font-size: clamp(42px, 5vw, 70px);
  line-height: .9;
  letter-spacing: -.045em;
}

.game-content h2 span {
  color: var(--gold);
}

.game-description {
  max-width: 520px;

  margin: 0 0 30px;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.75;
}


/* =========================================================
   META
   ========================================================= */

.game-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 34px;
}

.game-meta span {
  padding: 8px 10px;

  border: 1px solid var(--border);

  color: #999;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .1em;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.game-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.game-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 0 18px;

  background: var(--gold);
  border: 1px solid var(--gold);

  color: #080808;

  text-decoration: none;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: .12em;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.game-button:hover {
  background: #fff;
  border-color: #fff;
  color: #080808;
}

.game-button.secondary {
  background: transparent;
  border-color: var(--border);

  color: #aaa;
}

.game-button.secondary:hover {
  background: transparent;
  border-color: #fff;

  color: #fff;
}


/* =========================================================
   BOTTOM CALLOUT
   ========================================================= */

.games-footer-callout {
  padding: 110px 0 130px;

  border-top: 1px solid var(--border);

  max-width: 900px;
}

.games-footer-callout h2 {
  margin: 10px 0 24px;

  font-size: clamp(48px, 6vw, 82px);
  line-height: .9;
  letter-spacing: -.05em;
}

.games-footer-callout h2 span {
  color: var(--gold);
}

.games-footer-callout p:not(.eyebrow) {
  max-width: 620px;

  margin: 0 0 28px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

  .game-feature,
  .game-feature-reverse {
    grid-template-columns: 1fr;
  }

  .game-feature-reverse .game-image,
  .game-feature-reverse .game-content {
    order: initial;
  }

  .game-image {
    min-height: 420px;
  }

  .game-content {
    padding: 45px;
  }

}


@media (max-width: 700px) {

  .games-page {
    width: min(100% - 24px, 1500px);
  }

  .games-hero {
    min-height: 420px;
    padding: 65px 0 70px;
  }

  .games-hero h1 {
    font-size: clamp(58px, 16vw, 90px);
  }

  .games-lead {
    font-size: 15px;
  }

  .game-list {
    padding: 55px 0;
  }

  .game-image {
    min-height: 280px;
  }

  .game-content {
    padding: 34px 28px;
  }

  .game-content h2 {
    font-size: 46px;
  }

  .games-footer-callout {
    padding: 75px 0 90px;
  }

}


/* =========================================================
   COMPACT GAME LIBRARY
   ========================================================= */

.game-list {
  padding: 24px 0 75px;
}

.game-card {
  display: grid;
  grid-template-columns: 48% 52%;

  min-height: 390px;
  margin-bottom: 18px;

  border: 1px solid var(--border);
  background: #0b0b0b;

  overflow: hidden;
}

.game-card:nth-child(even) {
  grid-template-columns: 52% 48%;
}

.game-card:nth-child(even) .game-art {
  order: 2;
}

.game-card:nth-child(even) .game-content {
  order: 1;
}


/* IMAGE */

.game-art {
  min-height: 390px;
  overflow: hidden;
  background: #080808;
}

.game-art img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform .4s ease;
}

.game-card:hover .game-art img {
  transform: scale(1.025);
}


/* CONTENT */

.game-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 42px 48px;
}

.game-kicker {
  margin-bottom: 12px;

  color: var(--gold);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.game-content h2 {
  margin: 0 0 18px;

  color: #fff;

  font-size: clamp(34px, 4vw, 52px);
  line-height: .95;
  letter-spacing: -.04em;
}

.game-content p {
  max-width: 540px;

  margin: 0 0 25px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}


/* BUTTONS */

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-button {
  min-height: 38px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--gold);
  border: 1px solid var(--gold);

  color: #080808;
  text-decoration: none;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.game-button:hover {
  background: #fff;
  border-color: #fff;
}

.game-button.secondary {
  background: transparent;
  border-color: var(--border);
  color: #aaa;
}

.game-button.secondary:hover {
  border-color: #fff;
  color: #fff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

  .game-card,
  .game-card:nth-child(even) {
    display: block;
  }

  .game-card:nth-child(even) .game-art,
  .game-card:nth-child(even) .game-content {
    order: initial;
  }

  .game-art {
    height: 280px;
    min-height: 280px;
  }

  .game-content {
    padding: 32px;
  }

}


@media (max-width: 600px) {

  .game-list {
    padding: 35px 0 55px;
  }

  .game-art {
    height: 220px;
    min-height: 220px;
  }

  .game-content {
    padding: 28px 24px;
  }

  .game-content h2 {
    font-size: 38px;
  }

}
