/*
 * 게임정보 하위 화면에서 공통으로 사용하는 배너입니다.
 * 장식 이미지는 탭 클릭을 막지 않으며 모든 페이지에서 같은 크기와 위치를 유지합니다.
 */
.game-info-page .game-info-hero,
.sf-guide-page .game-info-hero,
.account-page .game-info-hero {
  --page-hero-vehicle-shift-x: clamp(24px, 3vw, 50px);
  position: relative;
  z-index: 0;
  padding-block: 60px 38px;
}

.game-info-page .game-info-hero > .site-container,
.sf-guide-page .game-info-hero > .site-container,
.account-page .game-info-hero > .site-container {
  width: min(calc(100% - 80px), 1720px);
  margin-inline: auto;
}

.sf-guide-page .sf-guide-main {
  padding-top: 0;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__frame {
  position: relative;
  height: 200px;
  min-height: 200px;
  overflow: visible;
  border-radius: 30px;
  isolation: isolate;
  background: #1a1a1a;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.62);
  content: "";
  pointer-events: none;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__background,
:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__shadow,
:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__vehicle {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__background {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__background--rear {
  mix-blend-mode: luminosity;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__shadow {
  z-index: 1;
  bottom: -1px;
  left: 50%;
  width: 100%;
  border-radius: inherit;
  transform: translateX(-50%);
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__vehicle {
  z-index: 2;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__vehicle--truck {
  top: -150px;
  left: calc(34% + var(--page-hero-vehicle-shift-x) + 50px);
  z-index: 3;
  width: min(40vw, 675px);
  transform: rotate(5deg);
  transform-origin: 50% 50%;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__vehicle--helicopter {
  top: -5px;
  right: calc(8% - var(--page-hero-vehicle-shift-x));
  width: min(24vw, 360px);
  transform: rotate(-8deg);
  transform-origin: 50% 50%;
}

/* 진입 애니메이션은 방문 첫 화면에서만 재생합니다. 게임정보 탭 사이를 오갈 때는
   같은 히어로가 다시 연출되지 않도록 JavaScript가 is-hero-intro를 붙이지 않습니다. */
:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero.is-hero-intro .page-hero__vehicle--truck {
  animation: game-info-truck-arrive 980ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero.is-hero-intro .page-hero__vehicle--helicopter {
  animation: game-info-helicopter-arrive 1100ms 100ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
  will-change: transform, opacity;
}

@keyframes game-info-truck-arrive {
  0% {
    opacity: 0;
    transform: translate(-190px, -120px) scale(0.48) rotate(5deg);
  }

  72% {
    opacity: 1;
    transform: translate(14px, 8px) scale(1.03) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(5deg);
  }
}

@keyframes game-info-helicopter-arrive {
  0% {
    opacity: 0;
    transform: translate(320px, -72px) scale(0.82) rotate(-13deg);
  }

  74% {
    opacity: 1;
    transform: translate(-12px, 5px) scale(1.02) rotate(-7deg);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(-8deg);
  }
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__copy {
  position: absolute;
  z-index: 4;
  top: 50px;
  left: 64px;
  width: min(540px, 100%);
  padding: 0;
  color: #ffffff;
  pointer-events: none;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__copy h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__description {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  line-height: 1.5;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__description span {
  display: block;
  white-space: nowrap;
}

:is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero + * {
  position: relative;
  z-index: 5;
}

@media (max-width: 1199px) {
  .game-info-page .game-info-hero > .site-container,
  .sf-guide-page .game-info-hero > .site-container,
  .account-page .game-info-hero > .site-container {
    width: min(calc(100% - 80px), 1720px);
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__copy {
    top: 50px;
    left: 40px;
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__description {
    font-size: clamp(14px, 1.45vw, 18px);
  }
}

@media (max-width: 899px) {
  .game-info-page .game-info-hero,
  .sf-guide-page .game-info-hero,
  .account-page .game-info-hero {
    padding-block: 24px;
  }

  .game-info-page .game-info-hero > .site-container,
  .sf-guide-page .game-info-hero > .site-container,
  .account-page .game-info-hero > .site-container {
    width: calc(100% - 32px);
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__frame {
    height: 235px;
    min-height: 235px;
    overflow: hidden;
    border-radius: 24px;
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__vehicle--truck {
    top: 14px;
    left: calc(62% + var(--page-hero-vehicle-shift-x) + 24px);
    width: 108px;
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__vehicle--helicopter {
    top: 26px;
    right: calc(34px - var(--page-hero-vehicle-shift-x));
    width: 160px;
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__copy {
    top: auto;
    bottom: 14px;
    left: 24px;
    width: calc(100% - 48px);
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__copy h1 {
    font-size: 32px;
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__description {
    margin-top: 18px;
    font-size: 16px;
  }

  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero .page-hero__description span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero.is-hero-intro .page-hero__vehicle--truck,
  :is(.game-info-page, .sf-guide-page, .account-page) .game-info-hero.is-hero-intro .page-hero__vehicle--helicopter {
    animation: none;
  }
}
