/* 히어로 — 페이지 전체 풍경 배경 + 하단 자연 페이드 */

.start-view--home {
  position: relative;
}

.start-home-foreground {
  position: relative;
  z-index: 2;
}

/* 홈일 때 기본 배경 패턴은 숨기고 단색만 (풍경과 겹침 방지) */
.start-screen:has(#startHomeView:not([hidden])) .start-screen-bg {
  background-color: #f2f2f7;
  background-image: none;
}

.start-screen:has(#startHomeView:not([hidden])) .start-screen-bg::after {
  display: none;
}

.hero-scenery--page {
  position: fixed;
  top: var(--site-header-height, 44px);
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100dvh - var(--site-header-height, 44px));
  min-height: 520px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-scenery__slides {
  position: absolute;
  inset: 0;
}

.hero-scenery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-scenery__slide.is-active {
  opacity: 1;
}

.hero-scenery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* 상단 가독성용 약한 딤 */
.hero-scenery__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 28, 48, 0.18) 0%,
    rgba(10, 28, 48, 0.08) 28%,
    transparent 52%
  );
  pointer-events: none;
}

/* 하단 — 페이지 배경색으로 자연스럽게 녹임 (경계선 없음) */
.hero-scenery__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 38%,
    rgba(242, 242, 247, 0.12) 52%,
    rgba(242, 242, 247, 0.45) 68%,
    rgba(242, 242, 247, 0.78) 82%,
    rgba(242, 242, 247, 0.95) 92%,
    #f2f2f7 100%
  );
  pointer-events: none;
}

/* 히어로 콘텐츠 — 박스 없이 전경만 */
.start-hero-banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(16px, 4vw, 28px) 0 clamp(8px, 2vw, 14px);
  margin: 0;
  min-height: clamp(240px, 52vw, 320px);
}

.start-hero-banner .start-hero-orbit {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 0 6px;
  padding: clamp(8px, 2vw, 16px) 0 4px;
}

.start-hero-banner .hero-orbit-stage {
  min-height: clamp(148px, 38vw, 200px);
}

.start-hero-banner .hero-orbit-stage::before {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 70%
  );
  filter: blur(14px);
}

.start-hero-banner .hero-orbit-geopus-wrap {
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.38));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.88);
}

.start-hero-banner .home-game-title {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
}

.start-hero-banner .home-game-title__main {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.start-hero-banner .home-game-title__sub {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

/* Training·게임 — 풍경 위에 자연스럽게 올라옴 */
.start-home-foreground .start-mode-section {
  z-index: 2;
}

.start-home-foreground .start-mode-heading {
  text-shadow: none;
}

.start-home-foreground .start-mode-heading__badge {
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.start-home-foreground .start-home-tabs,
.start-home-foreground .start-home-panels,
.start-home-foreground .training-square-grid,
.start-home-foreground #startGameMenu {
  position: relative;
  z-index: 2;
}

@media (min-width: 540px) {
  .start-hero-banner {
    min-height: clamp(260px, 42vw, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scenery__slide {
    transition: none;
  }

  .hero-scenery__slide:not(.is-active) {
    visibility: hidden;
  }
}
