/* 드림웨이 익스프레스 랜딩. 밤 남색 + 놋쇠 금 + 등불 노랑(게임 톤). 휴대폰 세로 먼저, 넓은 화면은 두 칸.
   글꼴: 넥슨 Lv.2 고딕 Bold — 라이선스상 파일을 고치지 않고(줄이기·woff2 변환 금지) 원본 OTF 그대로 쓴다. 본문은 시스템 글꼴.
   일·중 판은 넥슨 글꼴에 없는 한자(간체 등)가 있어 제목도 시스템 글꼴(아래 :lang). */
@font-face { font-family: "NexonLv2"; src: url("../font/NEXONLv2Gothic-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0b0d1f; --night2: #141a38; --night3: #1e2a5a; --card: #161c3a; --line: #2e3766;
  --brass: #d9b46a; --brass2: #a9813e; --lamp: #ffd77a; --cream: #fff4dc; --ink: #ecebf5; --ink2: #a9aecb;
  --head: "NexonLv2", system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: dark;
}
:root:lang(ja) { --head: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif; }
:root:lang(zh-Hans) { --head: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--night);
  font: 17px/1.75 system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass); }
b { color: var(--cream); font-weight: 700; }

/* 밤하늘: 별 몇 개 + 아래로 갈수록 깊어지는 남색 */
.hero {
  position: relative; display: grid; gap: 32px; justify-items: center;
  padding: max(28px, env(safe-area-inset-top)) 16px 56px;
  background:
    radial-gradient(circle at 12% 14%, var(--cream) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 84% 8%, var(--lamp) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, var(--cream) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 28% 52%, #bdb6dc 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 92% 70%, var(--cream) 0 1.5px, transparent 2.5px),
    radial-gradient(ellipse at 50% 0%, var(--night3) 0, #172150 35%, var(--night) 80%);
  background-size: 300px 300px, 360px 360px, 280px 280px, 320px 320px, 340px 340px, 100% 100%;
}
.hero-text { text-align: center; max-width: 520px; }
.lab { display: inline-block; color: var(--ink2); font-size: 14px; text-decoration: none; letter-spacing: 0.04em; }
.lab:hover { color: var(--cream); }
.top { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; }
.langs { color: #6d7299; font-size: 13px; }
.langs a { color: var(--ink2); text-decoration: none; }
.langs a:hover { color: var(--cream); }
.langs b { color: var(--brass); font-weight: 400; }
.title {
  margin: 14px 0 6px; font-family: var(--head); font-weight: 700; font-size: clamp(52px, 15vw, 88px); line-height: 1.1;
  color: var(--lamp); letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(255, 215, 122, 0.35), 0 3px 0 var(--brass2);
}
.title span { display: block; }
:lang(ja) .note, :lang(ja) .feature p { word-break: auto-phrase; }
.sub { margin: 0 0 16px; font-family: var(--head); font-weight: 700; font-size: clamp(16px, 4.4vw, 20px); color: var(--brass); letter-spacing: 0.06em; }
.lead { margin: 0 0 22px; font-family: var(--head); font-size: clamp(18px, 4.8vw, 22px); line-height: 1.6; color: var(--ink); }
.lead b { color: var(--lamp); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.soon {
  padding: 8px 18px; border-radius: 999px; font-family: var(--head); font-size: 16px; color: var(--night);
  background: linear-gradient(180deg, #ffe39c, var(--brass)); box-shadow: inset 0 -2px 0 var(--brass2);
}
.store { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink2); font-size: 14px; background: rgba(255, 255, 255, 0.03); }
.note { margin: 14px 0 0; color: var(--ink2); font-size: 13px; }

/* 휴대폰 틀: 놋쇠 테 */
.phone {
  margin: 0; width: min(78vw, 320px); border-radius: 30px; padding: 6px; overflow: hidden;
  background: linear-gradient(160deg, #f0d08a, var(--brass2) 45%, #6e5226);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 244, 220, 0.12);
}
.phone img { border-radius: 25px; aspect-ratio: 720 / 1558; object-fit: cover; background: var(--night2); }
.hero-phone { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 215, 122, 0.12); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 깨어난 카드 줄: 휴대폰에서는 옆으로 밀어 보기 */
.cards { margin: 8px 0 24px; text-align: center; }
.card-row {
  list-style: none; margin: 0 -16px; padding: 8px 16px 12px; display: flex; gap: 12px; justify-content: safe center;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card-row li { flex: 0 0 auto; width: 140px; scroll-snap-align: center; }
.card-row li:nth-child(odd) { transform: rotate(-2.5deg); }
.card-row li:nth-child(even) { transform: rotate(2.5deg) translateY(6px); }
.card-row img { border-radius: 10px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.cards-line { margin: 10px 0 0; font-family: var(--head); color: var(--lamp); font-size: 18px; }

/* 핵심 세 가지 */
.feature { display: grid; gap: 22px; justify-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature-text { max-width: 480px; }
.num { margin: 0; color: var(--brass); font-family: var(--head); font-size: 15px; letter-spacing: 0.1em; }
.feature h2 { margin: 2px 0 10px; font-family: var(--head); font-size: clamp(28px, 7.5vw, 38px); line-height: 1.25; color: var(--cream); }
.feature p { margin: 0 0 12px; color: var(--ink); }

.foot { margin-top: 24px; padding: 48px 16px max(40px, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, var(--night), #070816); border-top: 1px solid var(--line); }
.bye { margin: 0 0 18px; font-family: var(--head); font-size: 20px; color: var(--lamp); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; }
.links a { color: var(--ink2); }
.links a:hover { color: var(--cream); }
.later { color: #6d7299; }
.small { margin: 10px 0 0; color: #6d7299; font-size: 12px; }
.small a { color: inherit; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr auto; align-items: center; gap: 64px; padding: 64px max(32px, calc((100vw - 1040px) / 2)) 72px; justify-items: start; }
  .hero-text { text-align: left; max-width: 560px; }
  .title { font-size: 104px; }
  .lead { font-size: 25px; }
  .note { font-size: 14px; }
  .stores, .top { justify-content: flex-start; }
  .sub { font-size: 22px; }
  .phone { width: 300px; }
  .hero-phone { width: 330px; }
  .card-row li { width: 170px; }
  .feature { grid-template-columns: auto 1fr; gap: 64px; align-items: center; justify-items: start; padding: 64px 24px; }
  .feature.flip .phone { order: 2; }
  .feature.flip { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .card-row li { transition: transform 0.25s ease; }
  .card-row li:hover { transform: rotate(0) translateY(-6px); }
}
