/* Homepage release 5: restored coded cosmos, compact product teaser, smoother carousel. */

.home-page .hero {
  isolation: isolate;
  min-height: min(900px, 100svh);
  align-items: center;
  background:
    radial-gradient(circle at 74% 37%, rgba(102, 154, 239, 0.18), transparent 18%),
    radial-gradient(circle at 17% 60%, rgba(14, 27, 49, 0.74), transparent 43%),
    linear-gradient(115deg, #01070f 0%, var(--midnight-navy) 52%, #071528 100%);
}

.home-page .hero::before,
.home-page .hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.home-page .hero::before {
  opacity: 0.78;
  background-image:
    radial-gradient(circle, rgba(242, 242, 244, 0.88) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(102, 154, 239, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(212, 167, 111, 0.68) 0 0.8px, transparent 1.2px);
  background-position: 0 0, 39px 61px, 17px 23px;
  background-size: 143px 157px, 197px 181px, 113px 127px;
  mask-image: linear-gradient(90deg, transparent 2%, black 38%, black 100%);
}

.home-page .hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(1, 7, 15, 0.58) 0%, rgba(1, 7, 15, 0.24) 48%, transparent 75%);
}

.home-page .hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 9.5rem;
  padding-bottom: 7rem;
}

.home-page .hero-copy {
  position: relative;
  z-index: 3;
  width: min(660px, 55vw);
}

.home-page .hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(3.35rem, 5.8vw, 6rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.home-page .hero-intro {
  max-width: 535px;
}

.hero-cosmos {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: min(63vw, 960px);
  overflow: hidden;
  pointer-events: none;
}

.cosmos-beam {
  position: absolute;
  top: 33%;
  right: 27%;
  width: 56%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(102, 154, 239, 0.16), rgba(242, 242, 244, 0.76));
  box-shadow: 0 0 28px rgba(102, 154, 239, 0.46);
  transform: rotate(-18deg);
  transform-origin: right center;
}

.cosmos-sun {
  position: absolute;
  z-index: 5;
  top: 33.2%;
  right: 27%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 8px #fff,
    0 0 28px 8px rgba(102, 154, 239, 0.86),
    0 0 86px 24px rgba(102, 154, 239, 0.34);
}

.cosmos-sun::before,
.cosmos-sun::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  transform: translate(-50%, -50%);
}

.cosmos-sun::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.cosmos-planet {
  position: absolute;
  z-index: 2;
  right: -34%;
  bottom: -64%;
  width: min(82vw, 1000px);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 204, 255, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 30%, rgba(102, 154, 239, 0.36), transparent 10%),
    radial-gradient(circle at 44% 36%, rgba(212, 167, 111, 0.65) 0 0.7%, transparent 1.2%),
    radial-gradient(circle at 52% 26%, rgba(212, 167, 111, 0.72) 0 0.5%, transparent 1%),
    radial-gradient(circle at 38% 44%, rgba(212, 167, 111, 0.55) 0 0.55%, transparent 1%),
    radial-gradient(circle at 57% 48%, rgba(212, 167, 111, 0.62) 0 0.55%, transparent 1.1%),
    radial-gradient(ellipse at 43% 34%, rgba(46, 81, 119, 0.9), transparent 24%),
    radial-gradient(ellipse at 58% 52%, rgba(21, 45, 74, 0.92), transparent 38%),
    radial-gradient(circle at 38% 28%, #2e527f 0%, #142c4b 23%, #081526 54%, #020812 77%);
  box-shadow:
    -28px -30px 64px rgba(102, 154, 239, 0.24),
    -10px -12px 24px rgba(198, 224, 255, 0.4),
    inset 78px 62px 120px rgba(102, 154, 239, 0.08),
    inset -180px -160px 220px rgba(0, 0, 0, 0.82);
}

.cosmos-planet::before {
  position: absolute;
  inset: 13% 18% 38% 9%;
  content: "";
  background:
    radial-gradient(ellipse at 25% 40%, rgba(38, 76, 112, 0.95) 0 8%, transparent 9%),
    radial-gradient(ellipse at 42% 52%, rgba(45, 88, 126, 0.85) 0 12%, transparent 13%),
    radial-gradient(ellipse at 63% 35%, rgba(35, 72, 108, 0.9) 0 9%, transparent 10%),
    radial-gradient(ellipse at 75% 61%, rgba(30, 62, 98, 0.92) 0 14%, transparent 15%);
  opacity: 0.72;
  filter: blur(3px);
  transform: rotate(-14deg);
}

.cosmos-planet::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle, rgba(242, 210, 158, 0.98) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(212, 167, 111, 0.88) 0 0.7px, transparent 1.6px);
  background-position: 19px 31px, 51px 67px;
  background-size: 59px 47px, 83px 71px;
  opacity: 0.62;
  mask-image: radial-gradient(circle at 40% 35%, black 0 36%, transparent 63%);
}

.cosmos-orbit {
  position: absolute;
  z-index: 3;
  right: -29%;
  bottom: -57%;
  width: min(76vw, 920px);
  aspect-ratio: 1;
  border: 1px solid rgba(102, 154, 239, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(102, 154, 239, 0.08);
}

.home-page .facts-strip dd {
  max-width: 250px;
  line-height: 1.35;
}

.game-showcase-viewport {
  touch-action: pan-y;
}

.game-showcase-stage {
  contain: layout paint;
}

.game-slide {
  transition:
    transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 500ms ease,
    border-color 220ms ease;
}

.game-slide[data-position="-1"] {
  opacity: 0.28;
  transform: translate(-130%, -50%) rotateY(30deg) scale(0.81);
}

.game-slide[data-position="1"] {
  opacity: 0.28;
  transform: translate(30%, -50%) rotateY(-30deg) scale(0.81);
}

.game-slide[data-skip-transition] {
  opacity: 0 !important;
  transition: none !important;
}

.game-showcase.is-animating .game-slide[data-position="0"] {
  border-color: rgba(212, 167, 111, 0.55);
}

.carousel-indicators:empty {
  min-height: 38px;
}

.upcoming-card {
  display: grid;
  min-height: 236px;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: #061225;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.upcoming-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.25rem);
}

.upcoming-eyebrow {
  margin: 0 0 1rem;
  color: var(--stellar-gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.upcoming-copy h3 {
  margin: 0;
  color: var(--soft-white);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.upcoming-copy > p:not(.upcoming-eyebrow) {
  max-width: 650px;
  margin: 1rem 0 1.35rem;
  color: var(--muted-light);
  font-size: 0.86rem;
  line-height: 1.75;
}

.upcoming-visual {
  position: relative;
  isolation: isolate;
  min-height: 236px;
  overflow: hidden;
  border-left: 1px solid rgba(1, 11, 26, 0.34);
  background:
    linear-gradient(rgba(212, 167, 111, 0.06), rgba(212, 167, 111, 0.06)),
    var(--stellar-gold);
}

.upcoming-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(1, 11, 26, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 11, 26, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(135deg, black, transparent 78%);
}

.upcoming-visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(96px, 12vw, 150px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(1, 11, 26, 0.18));
  transform: translate(-50%, -54%);
}

.upcoming-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  aspect-ratio: 1;
  border: 1px solid rgba(1, 11, 26, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.upcoming-orbit-one {
  width: 210px;
}

.upcoming-orbit-two {
  width: 320px;
  border-color: rgba(1, 11, 26, 0.12);
}

.upcoming-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  left: 1.5rem;
  z-index: 3;
  padding-top: 0.75rem;
  color: rgba(1, 11, 26, 0.68);
  border-top: 1px solid rgba(1, 11, 26, 0.35);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@media (max-width: 900px) {
  .hero-cosmos {
    width: 80vw;
    opacity: 0.72;
  }

  .cosmos-planet {
    right: -48%;
    bottom: -52%;
  }

  .upcoming-card {
    grid-template-columns: 1fr 0.7fr;
  }
}

@media (max-width: 720px) {
  .home-page .hero {
    min-height: 840px;
    align-items: start;
  }

  .home-page .hero-inner {
    padding-top: 9.25rem;
    padding-bottom: 5.4rem;
  }

  .home-page .hero-copy {
    width: 100%;
  }

  .home-page .hero h1 {
    max-width: 570px;
    font-size: clamp(2.9rem, 13.4vw, 4.65rem);
  }

  .hero-cosmos {
    top: 33%;
    width: 122vw;
    opacity: 0.56;
  }

  .cosmos-sun,
  .cosmos-beam {
    top: 36%;
    right: 31%;
  }

  .cosmos-planet {
    right: -48%;
    bottom: -34%;
    width: 128vw;
  }

  .game-slide[data-position="-1"] {
    transform: translate(-132%, -50%) rotateY(26deg) scale(0.78);
  }

  .game-slide[data-position="1"] {
    transform: translate(32%, -50%) rotateY(-26deg) scale(0.78);
  }

  .upcoming-card {
    grid-template-columns: 1fr;
  }

  .upcoming-visual {
    min-height: 185px;
    border-top: 1px solid rgba(1, 11, 26, 0.34);
    border-left: 0;
  }

  .upcoming-visual img {
    width: 102px;
  }

  .upcoming-orbit-one {
    width: 170px;
  }

  .upcoming-orbit-two {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .home-page .facts-strip dl {
    grid-template-columns: 1fr;
  }

  .home-page .facts-strip dl > div,
  .home-page .facts-strip dl > div:last-child {
    min-height: auto;
    padding: 1.15rem 0.25rem;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .home-page .facts-strip dl > div:last-child {
    border-bottom: 0;
  }

  .home-page .facts-strip dd {
    max-width: none;
    font-size: 0.84rem;
  }

  .upcoming-copy {
    padding: 2rem 1.4rem 2.25rem;
  }
}

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


/* Release 6: corporate mobile-gaming banner. */
.home-page .hero {
  min-height: clamp(650px, 82svh, 780px);
  background: var(--midnight-navy);
}

.home-page .hero::before {
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(1, 7, 15, 0.96) 0%,
    rgba(1, 7, 15, 0.9) 27%,
    rgba(1, 7, 15, 0.58) 49%,
    rgba(1, 7, 15, 0.12) 76%,
    rgba(1, 7, 15, 0.08) 100%
  );
  mask-image: none;
}

.home-page .hero::after {
  z-index: -1;
  background: linear-gradient(0deg, rgba(1, 7, 15, 0.58) 0%, transparent 33%);
}

.hero-banner {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 720px) {
  .home-page .hero {
    min-height: 720px;
  }

  .hero-banner {
    object-position: 66% center;
  }

  .home-page .hero::before {
    background: linear-gradient(
      180deg,
      rgba(1, 7, 15, 0.94) 0%,
      rgba(1, 7, 15, 0.84) 47%,
      rgba(1, 7, 15, 0.3) 76%,
      rgba(1, 7, 15, 0.54) 100%
    );
  }
}

/* Release 7: directional 3D carousel transition. */
.game-showcase-viewport {
  perspective: 1250px;
  perspective-origin: 50% 46%;
}

.game-showcase-stage {
  contain: layout;
  transform-style: preserve-3d;
}

.game-slide {
  transform-style: preserve-3d;
  transition:
    transform 900ms cubic-bezier(0.18, 0.78, 0.22, 1),
    opacity 680ms ease,
    filter 680ms ease,
    border-color 220ms ease;
}

.game-slide[data-position="0"] {
  filter: brightness(1);
  transform: translate3d(-50%, -50%, 72px) rotateY(0deg) scale(1);
}

.game-slide[data-position="-1"] {
  opacity: 0.32;
  filter: brightness(0.66) saturate(0.72);
  transform: translate3d(-130%, -50%, -210px) rotateY(50deg) scale(0.78);
}

.game-slide[data-position="1"] {
  opacity: 0.32;
  filter: brightness(0.66) saturate(0.72);
  transform: translate3d(30%, -50%, -210px) rotateY(-50deg) scale(0.78);
}

.game-showcase.is-animating[data-direction="next"] .game-slide[data-position="0"] .game-slide-copy {
  animation: carousel-copy-from-right 900ms cubic-bezier(0.18, 0.78, 0.22, 1) both;
}

.game-showcase.is-animating[data-direction="previous"] .game-slide[data-position="0"] .game-slide-copy {
  animation: carousel-copy-from-left 900ms cubic-bezier(0.18, 0.78, 0.22, 1) both;
}

.game-showcase.is-animating[data-direction="next"] .game-slide[data-position="0"] img {
  animation: carousel-image-from-right 900ms cubic-bezier(0.18, 0.78, 0.22, 1) both;
}

.game-showcase.is-animating[data-direction="previous"] .game-slide[data-position="0"] img {
  animation: carousel-image-from-left 900ms cubic-bezier(0.18, 0.78, 0.22, 1) both;
}

@keyframes carousel-copy-from-right {
  0% { opacity: 0.55; transform: translate3d(34px, 0, -24px) rotateY(-7deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0deg); }
}

@keyframes carousel-copy-from-left {
  0% { opacity: 0.55; transform: translate3d(-34px, 0, -24px) rotateY(7deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0deg); }
}

@keyframes carousel-image-from-right {
  0% { transform: translate3d(22px, 0, -18px) scale(0.965); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes carousel-image-from-left {
  0% { transform: translate3d(-22px, 0, -18px) scale(0.965); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 720px) {
  .game-slide[data-position="0"] {
    transform: translate3d(-50%, -50%, 44px) rotateY(0deg) scale(1);
  }

  .game-slide[data-position="-1"] {
    transform: translate3d(-132%, -50%, -145px) rotateY(44deg) scale(0.76);
  }

  .game-slide[data-position="1"] {
    transform: translate3d(32%, -50%, -145px) rotateY(-44deg) scale(0.76);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-slide,
  .game-slide-copy,
  .game-slide img {
    animation: none !important;
    transition: none !important;
  }
}