.games-view {
  background: #08080c;
}

.games-page {
  min-height: calc(100vh - 66px);
}

.games-view .tutorials-nav__links a[aria-current='page'] {
  box-shadow: inset 0 -2px #e50914;
}

.games-hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

.games-hero__backdrop,
.games-hero__backdrop::after {
  position: absolute;
  inset: 0;
}

.games-hero__backdrop {
  z-index: -2;
}

.games-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-object-position, center 58%);
}

.games-hero__backdrop::after {
  content: '';
  background:
    linear-gradient(90deg, rgba(4,4,8,.97) 0%, rgba(4,4,8,.76) 32%, rgba(4,4,8,.12) 68%),
    linear-gradient(0deg, #08080c 0%, transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,.28), transparent 30%);
}

.games-hero__content {
  display: flex;
  width: min(620px, 88vw);
  min-height: 72vh;
  justify-content: flex-end;
  flex-direction: column;
  padding: 76px 0 88px 3.1vw;
}

.games-hero__content > p:first-child {
  margin: 0 0 9px;
  color: #f20d1a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.games-hero h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(74px, 9vw, 138px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .84;
  text-transform: uppercase;
}

.games-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.games-hero__meta span:first-child {
  color: #5cff91;
  font-weight: 800;
}

.games-hero[data-feature='bumpfiends'] .games-hero__content > p:first-child,
.games-hero[data-feature='bumpfiends'] .games-hero__meta span:first-child {
  color: #b6f34b;
}

.games-hero__description {
  max-width: 520px;
  margin: 15px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.55;
}

.games-hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.games-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.games-button--primary {
  background: #fff;
  color: #09090d;
}

.games-button--secondary {
  background: rgba(109,109,110,.7);
  color: #fff;
}

.games-button:is(:hover, :focus-visible) {
  filter: brightness(.88);
}

.games-section {
  padding: 22px 0 14px;
}

.games-section:last-child {
  padding-bottom: 64px;
}

.games-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 3.1vw 10px;
}

.games-section__head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.02em;
}

.games-section__head a {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.games-subsection__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 3.1vw 8px;
}

.games-subsection__head h3 {
  margin: 0;
  font-size: 17px;
}

.games-subsection__head span {
  color: rgba(255,255,255,.5);
  font-size: 11px;
}

.games-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 3.1vw 24px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 3.1vw;
}

.games-rail::-webkit-scrollbar {
  display: none;
}

.games-rail-controls { display: flex; gap: 8px; }
.games-rail-controls button {
  width: 40px; height: 36px; border: 1px solid #ffffff30;
  border-radius: 8px; background: #ffffff12; color: #fff;
  font: inherit; font-size: 20px; cursor: pointer;
}
.games-rail-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.games-rail-controls button:disabled { opacity: .3; cursor: default; }

.games-card,
.games-pet-card {
  position: relative;
  flex: 0 0 clamp(250px, 24vw, 360px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: #121218;
  color: #fff;
  scroll-snap-align: start;
  text-decoration: none;
  isolation: isolate;
}

.games-card {
  aspect-ratio: 16 / 9;
}

.games-rail--experiences {
  padding-bottom: 10px;
}

.games-experience-card {
  flex-basis: clamp(290px, 32vw, 470px);
  aspect-ratio: 16 / 8.5;
}

.games-experience-card .games-card__copy strong {
  font-size: clamp(17px, 1.45vw, 21px);
}

.games-experience-card .games-card__copy small {
  max-width: 32ch;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.games-rail--pets {
  padding-bottom: 34px;
}

.games-pet-card {
  aspect-ratio: 16 / 10;
}

.games-card img,
.games-pet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.games-card::after,
.games-pet-card::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.94));
}

.games-card__badge,
.games-pet-card__number {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(10,10,14,.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.games-card__copy,
.games-pet-card__copy {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  left: 14px;
}

.games-card__copy strong,
.games-pet-card__copy strong {
  display: block;
  font-size: 16px;
}

.games-card__copy small,
.games-pet-card__copy small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.games-card:is(:hover, :focus-visible) img,
.games-pet-card:is(:hover, :focus-visible) img {
  transform: scale(1.035);
}

.games-card:focus-visible,
.games-pet-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .games-view .tutorials-nav__links a[aria-current='page'] {
    box-shadow: inset 3px 0 #e50914;
  }

  .games-hero,
  .games-hero__content {
    min-height: 68vh;
  }

  .games-hero__backdrop::after {
    background:
      linear-gradient(90deg, rgba(4,4,8,.82), rgba(4,4,8,.12)),
      linear-gradient(0deg, #08080c 0%, rgba(4,4,8,.78) 42%, transparent 78%);
  }

  .games-hero__content {
    width: 100%;
    padding: 88px 16px 58px;
  }

  .games-hero h1 {
    font-size: clamp(64px, 19vw, 102px);
  }

  .games-hero__description {
    max-width: 92%;
    font-size: 14px;
  }

  .games-section {
    padding-top: 18px;
  }

  .games-section__head {
    padding-right: 16px;
    padding-left: 16px;
  }

  .games-subsection__head {
    padding-right: 16px;
    padding-left: 16px;
  }

  .games-rail {
    padding-right: 16px;
    padding-left: 16px;
    scroll-padding-inline: 16px;
  }

  .games-card,
  .games-pet-card {
    flex-basis: 78vw;
  }

  .games-experience-card {
    flex-basis: 86vw;
  }
}
