/* Full-screen, paged homepage scroller. */

html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
}

.home-scroller {
  position: static;
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

html:has(.games-page),
body:has(.games-page) {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
}

/* The Games catalog is intentionally paged inside its viewport. */
.games-page {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.games-page > .home-scroller__page {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.games-page > .site-footer {
  scroll-snap-align: start;
}

.home-scroller__page {
  height: 100svh;
  min-height: 100svh;
  background: #808080;
}

.home-scroller__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.home-scroller__hero-image,
.home-scroller__hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-scroller__security-copy {
  position: absolute;
  z-index: 2;
  bottom: clamp(2rem, 6vw, 5rem);
  left: clamp(1.5rem, 7vw, 7rem);
  max-width: 28rem;
  color: #fff;
}

.home-scroller__security-copy h2 {
  margin: 0 0 0.75rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 500;
}

.home-scroller__security-copy p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  line-height: 1.4;
}

.home-scroller__security-button {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(2rem, 6vw, 5rem);
  display: inline-flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: #3a3a3a;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.home-scroller__security-button:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}

.home-scroller__hero-image {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.08) translateX(4%);
  transition: opacity 1.4s ease;
}

.home-scroller__hero-image.is-visible {
  opacity: 1;
}

.home-scroller__hero-image.is-animated {
  animation: hero-pan 9.8s linear forwards;
}

.home-scroller__hero-image.is-fading {
  opacity: 0;
}

.home-scroller__hero-overlay {
  z-index: 1;
  background: rgb(0 0 0 / 0.6);
  pointer-events: none;
}

.home-scroller__hero-title {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: min(94%, 78rem);
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.3rem, 5.8vw, 5.2rem);
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
  transform: translate(-50%, -50%);
}

.home-scroller__games {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 18rem));
  align-items: center;
  justify-content: center;
  gap: clamp(4rem, 14vw, 18rem);
  padding: clamp(2rem, 8vw, 7rem);
  box-sizing: border-box;
  background: #1e1e1e;
}

.home-scroller__news-button {
  position: static;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: -1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #3a3a3a;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transform: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.home-scroller__news-button:hover,
.home-scroller__news-button:focus-visible {
  background: #505050;
  transform: translateY(-0.15rem);
}

.home-scroller__games > .home-scroller__feature,
.home-scroller__games > .home-scroller__news-button { transform: translateY(2rem); }

.home-scroller__feature {
  align-self: center;
  color: #fff;
  text-decoration: none;
}

.home-scroller__feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-inline: 0;
  object-fit: contain;
  transform: perspective(45rem) scale(0.97) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 220ms ease-out, opacity 1.2s ease;
  will-change: transform;
}

.home-scroller__games .home-scroller__feature-image { border-radius: 0.35rem; }

.home-scroller__game-icon {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}

.home-scroller__game-icon.is-game-icon-visible {
  opacity: 1;
}

.home-scroller__feature-image.is-game-icon-fading {
  opacity: 0;
}

.home-scroller__image-wrap {
  position: relative;
  width: 18rem;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: visible;
}

.home-scroller__feature-title {
  margin: 3.5rem 0 0.75rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 500;
  white-space: nowrap;
}

.home-scroller__feature p {
  max-width: 22rem;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .home-scroller__games {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-content: center;
  }

  .home-scroller__feature {
    width: min(100%, 18rem);
    justify-self: center;
    text-align: center;
  }

  .home-scroller__feature-title {
    margin-top: 1rem;
  }

  .home-scroller__feature + .home-scroller__feature {
    position: relative;
  }

  .home-scroller__feature + .home-scroller__feature::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    left: 50%;
    width: min(100%, 18rem);
    border-top: 1px solid rgb(255 255 255 / 0.35);
    transform: translateX(-50%);
  }

  .home-scroller__security-copy {
    top: 78%;
    bottom: auto;
    right: 1.5rem;
    left: 1.5rem;
    max-width: none;
    text-align: center;
    transform: translateY(-50%);
  }

  .home-scroller__security-button {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .home-scroller__security-button:hover,
  .home-scroller__security-button:focus-visible {
    transform: translate(-50%, calc(-50% - 2px));
  }

  .home-scroller__feature-image {
    width: 100%;
  }

  .home-scroller__image-wrap {
    width: min(100%, 8rem);
    margin-inline: auto;
  }
}

.home-scroller__scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  color: #fff;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 3rem;
  cursor: pointer;
  text-align: center;
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.45rem);
  }
}

@keyframes hero-pan {
  from {
    transform: scale(1.08) translateX(4%);
  }
  to {
    transform: scale(1.08) translateX(-4%);
  }
}



