/* 에이치소프트 게임 홈페이지 스타일 */
:root {
  --ink: #1c1430;
  --ink-2: #140f22;
  --plum: #2a1d47;
  --sand: #f4e4c9;
  --sand-light: #fbf1df;
  --sand-deep: #ead2a8;
  --orange: #e9772e;
  --teal: #178f86;
  --text: #3b2e26;
  --muted: #6e5d50;
  --lavender: #c9bce6;
  --game: "Lilita One", "Pretendard Variable", sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--sand);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

a {
  color: inherit;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

/* 언어별 문구 표시 */
html[lang="ko"] [data-lang="en"],
html[lang="en"] [data-lang="ko"] {
  display: none;
}

.wrap,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 상단 메뉴 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s;
}

.header.is-scrolled,
.header.is-open,
.header.is-solid {
  background: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
}

.header .container.header-inner {
  max-width: none;
}

.logo img {
  width: auto;
  height: 30px;
}

.nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
  margin-right: 32px;
  font-family: var(--game);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  background: none;
  color: #fff;
  font-family: var(--game);
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.3s, opacity 0.2s;
}

.header.is-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.header.is-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 첫 화면 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink) url("/images/dunerider/poster.webp") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(28, 20, 48, 0.05), rgba(28, 20, 48, 0.55)),
    linear-gradient(180deg, rgba(28, 20, 48, 0.55) 0%, rgba(28, 20, 48, 0) 22%, rgba(28, 20, 48, 0) 70%, rgba(28, 20, 48, 0.6) 100%);
}

.hero-content {
  position: relative;
  padding: 120px 24px 140px;
}

.hero-presents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-presents img {
  width: auto;
  height: 24px;
}

.hero-logo img {
  width: min(760px, 88vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 30px rgba(20, 10, 30, 0.45));
}

.hero-sub {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(20, 10, 30, 0.6);
}


.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: nudge 2.4s ease-in-out infinite;
}

.scroll-down svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* 반반 나눈 구간 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 92vh;
}

.split-media {
  display: flex;
  justify-content: center;
  padding: 100px 40px;
}

.split-copy {
  max-width: 560px;
  padding: 100px 40px;
}

.split h2 {
  margin-bottom: 26px;
  font-family: var(--game);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.split p {
  margin: 0 0 18px;
  font-size: 18px;
}

.split-sand {
  background: var(--sand);
}

.split-sand h2 {
  color: var(--plum);
}

.split-sand .split-copy {
  padding-left: 0;
}

.split-orange {
  background: var(--orange);
  color: #fff;
}

.split-orange .split-copy {
  justify-self: end;
  padding-right: 0;
}

.split-orange p {
  color: rgba(255, 255, 255, 0.92);
}

.phone {
  width: 340px;
  padding: 12px;
  border-radius: 54px;
  background: var(--ink);
  box-shadow: 0 40px 60px -30px rgba(40, 20, 10, 0.55);
}

.phone video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 42px;
  background: var(--plum);
}

.trick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 34px;
}

.trick-row img {
  width: 46px;
  height: 46px;
}

.trick-caption {
  margin-top: 10px !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.duo {
  display: flex;
  align-items: flex-start;
}

.duo img {
  width: 270px;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 30px 50px -24px rgba(80, 30, 10, 0.6);
}

.duo img + img {
  margin: 80px 0 0 -50px;
}

/* 스크린샷 띠 */
.screens {
  background: var(--ink);
  color: #fff;
}

.screens-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
}

.screens-bar h2 {
  font-family: var(--game);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.screens-nav {
  display: flex;
  gap: 10px;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.12);
}

.arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screens-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.screens-track::-webkit-scrollbar {
  display: none;
}

.screens-track img {
  flex: 0 0 25%;
  width: 25%;
  height: auto;
  scroll-snap-align: start;
}

/* 9개 지역: 낮에서 밤으로 이어지는 사막 코스 지도 */
.zones {
  position: relative;
  padding-top: 120px;
  background: linear-gradient(90deg, #ffe3a6 0%, #ffc47c 20%, #f39a62 38%, #d45f78 56%, #7d3488 74%, #2c1958 90%, #1a0f3a 100%);
  overflow: hidden;
}

.zones-head {
  position: relative;
  z-index: 2;
}

.zones-head h2 {
  margin-bottom: 16px;
}

.route-hint {
  display: none;
}

.zones-head h2 {
  font-family: var(--game);
  font-size: 58px;
  line-height: 1;
  color: var(--plum);
}

.zones-head p {
  max-width: 420px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #6b3524;
}

.route-inner {
  position: relative;
  height: 470px;
}

.route-sun {
  position: absolute;
  top: 30px;
  left: 3%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0%, #ffe39a 60%, #ffcd6a 100%);
  box-shadow: 0 0 60px 20px rgba(255, 220, 140, 0.55);
}

.route-moon {
  position: absolute;
  top: 40px;
  right: 6%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 16px -8px 0 0 #fff1c9;
  filter: drop-shadow(0 0 14px rgba(255, 240, 200, 0.5));
}

.route-stars {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 70%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff 60%, transparent),
    radial-gradient(1px 1px at 22% 12%, #fff 60%, transparent),
    radial-gradient(2px 2px at 34% 44%, #fff4cf 60%, transparent),
    radial-gradient(1px 1px at 46% 20%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 55% 60%, #fff 60%, transparent),
    radial-gradient(2px 2px at 63% 8%, #fff 60%, transparent),
    radial-gradient(1px 1px at 72% 38%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 80% 70%, #fff4cf 60%, transparent),
    radial-gradient(1px 1px at 90% 26%, #fff 60%, transparent),
    radial-gradient(2px 2px at 96% 52%, #fff 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.dunes-back,
.dunes-front {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
}

.dunes-back {
  bottom: 40px;
  height: 220px;
}

.dunes-front {
  bottom: 0;
  z-index: 3;
  height: 120px;
}

.trail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.stops {
  position: absolute;
  left: 1.5%;
  right: 1.5%;
  bottom: 54px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stops li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  text-align: center;
  color: var(--plum);
}

.stops li:nth-child(n + 5) {
  color: #fff;
}

.flag {
  position: relative;
  padding: 4px 16px 4px 12px;
  margin-bottom: 8px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
  font-family: var(--game);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
}

.stops li:nth-child(n + 6) .flag {
  background: #ffb347;
  color: #2c1958;
}

.stops h3 {
  font-family: var(--game);
  font-size: 22px;
  line-height: 1.1;
}

.stops p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.85;
}

.pole {
  width: 3px;
  height: calc(60px + var(--lift, 0px));
  margin-top: 12px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

/* 상점 */
.shop {
  padding: 130px 0;
  background: var(--sand-light);
}

.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.shop-head h2 {
  font-family: var(--game);
  font-size: 58px;
  line-height: 1;
  color: var(--plum);
}

.shop-head p {
  max-width: 440px;
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--sand-deep);
}

.shop-tab {
  margin-bottom: -2px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: var(--game);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
}

.shop-tab:hover {
  color: var(--plum);
}

.shop-tab.is-active {
  border-bottom-color: var(--orange);
  color: var(--plum);
}

.shop-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-items[hidden] {
  display: none;
}

.shop-items li {
  padding: 12px 12px 16px;
  border-radius: 16px;
  background: var(--sand);
  text-align: center;
}

.shop-items li > img {
  width: 100%;
  height: auto;
}

.shop-items b {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--plum);
}

.shop-items span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.shop-items span img {
  width: 16px;
  height: 16px;
}

/* 하단 */
.footer {
  padding: 48px 0 36px;
  background: var(--ink-2);
  color: rgba(225, 215, 240, 0.55);
  font-size: 13px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo img {
  height: 26px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 14px;
}

.footer-nav a {
  color: rgba(245, 238, 255, 0.85);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-info {
  padding-top: 22px;
}

.footer-info p {
  margin: 0 0 6px;
}

/* 개인정보처리방침 같은 문서 화면 */
.doc-hero {
  padding: 140px 0 60px;
  background: var(--plum);
  color: #fff;
  text-align: center;
}

.doc-container {
  max-width: 860px;
}

.doc-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 22px;
}

.doc-hero h1 {
  margin: 0 0 10px;
  font-family: var(--game);
  font-size: 46px;
  line-height: 1.1;
}

.doc-meta {
  margin: 0;
  color: var(--lavender);
}

.doc-body {
  padding-top: 56px;
  padding-bottom: 110px;
}

.doc-article {
  padding: 48px 52px;
  border-radius: 20px;
  background: #fff;
}

.doc-summary {
  margin: 0 0 8px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--sand-light);
  font-size: 16px;
}

.doc-article h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--plum);
}

.doc-article p,
.doc-article li {
  font-size: 16px;
}

.doc-article p {
  margin: 0 0 12px;
}

.doc-article ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.doc-article li {
  margin-bottom: 6px;
}

.doc-article a {
  color: #b5521a;
}

.doc-info {
  margin: 0;
  border-top: 2px solid var(--plum);
}

.doc-info div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand-deep);
}

.doc-info dt {
  font-weight: 800;
}

.doc-info dd {
  margin: 0;
}

/* 스크롤 등장 효과 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* 태블릿 */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .split-media {
    padding: 80px 24px 0;
  }

  .split-copy,
  .split-sand .split-copy,
  .split-orange .split-copy {
    justify-self: center;
    padding: 56px 24px 90px;
  }

  .split-orange .split-media {
    order: -1;
  }

  .screens-track img {
    flex-basis: 50%;
    width: 50%;
  }

  .zones {
    padding-top: 90px;
    background: #ffe3a6;
  }

  .route-hint {
    display: block;
    margin-top: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    color: var(--orange) !important;
  }

  .route {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .route::-webkit-scrollbar {
    display: none;
  }

  .route-inner {
    width: 1400px;
    background: linear-gradient(90deg, #ffe3a6 0%, #ffc47c 20%, #f39a62 38%, #d45f78 56%, #7d3488 74%, #2c1958 90%, #1a0f3a 100%);
  }

  .shop-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 모바일 */
@media (max-width: 680px) {
  .wrap,
  .container {
    padding: 0 20px;
  }

  .header-inner {
    height: 60px;
    padding: 0 20px;
  }

  .logo img {
    height: 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px 20px 16px;
    background: var(--ink);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }

  .header.is-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-presents {
    font-size: 11px;
  }

  .hero-presents img {
    height: 20px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .split h2 {
    font-size: 44px;
  }

  .split p {
    font-size: 16px;
  }

  .phone {
    width: 260px;
    padding: 10px;
    border-radius: 42px;
  }

  .phone video {
    border-radius: 32px;
  }

  .trick-row img {
    width: 38px;
    height: 38px;
  }

  .duo img {
    width: 180px;
    border-radius: 18px;
  }

  .duo img + img {
    margin: 50px 0 0 -30px;
  }

  .screens-bar {
    padding: 22px 20px;
  }

  .screens-bar h2 {
    font-size: 22px;
  }

  .screens-track img {
    flex-basis: 72%;
    width: 72%;
  }

  .shop {
    padding: 90px 0;
  }

  .zones-head h2,
  .shop-head h2 {
    font-size: 40px;
  }

  .zones-head p {
    font-size: 15px;
  }

  .route-inner {
    height: 430px;
  }

  .shop-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .shop-tabs {
    gap: 4px 20px;
  }

  .shop-tab {
    font-size: 17px;
  }

  .shop-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .shop-items li {
    padding: 8px 8px 12px;
    border-radius: 12px;
  }

  .shop-items b {
    font-size: 12px;
  }


  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-hero {
    padding: 100px 0 44px;
  }

  .doc-hero h1 {
    font-size: 34px;
  }

  .doc-article {
    padding: 30px 22px;
  }

  .doc-info div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html,
  .screens-track {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
