:root {
  --bg: #f3f0ff;
  --ink: #2a2140;
  --ink-soft: #5c5478;
  --brand: #7b61ff;
  --brand-dark: #5a43d6;
  --card: #ffffff;
  --red: #ff5d73;
  --blue: #3498db;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --purple: #9b59b6;
  --radius: 22px;
  --font-head: "Jua", "M PLUS Rounded 1c", "Apple SD Gothic Neo", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Apple SD Gothic Neo", "Hiragino Sans", "PingFang TC", "Noto Sans KR", "Noto Sans TC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
}
body.lang-ja, body.lang-zh { --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "PingFang TC", "Noto Sans TC", sans-serif; }
img, video { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: 0; }
body.lang-ja h1, body.lang-ja h2, body.lang-zh h1, body.lang-zh h2 { font-weight: 800; }
section, header.top, footer { padding-left: 16px; padding-right: 16px; }
section > *, .top, footer > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 14px; }
.lead { color: var(--ink-soft); font-size: 18px; max-width: 640px; margin: 0 auto 8px; }

/* 상단 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; max-width: 1072px; margin: 0 auto; }
.top > * { margin: 0; max-width: none; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 22px; }
.logo img { border-radius: 9px; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.langs a[aria-current] { background: var(--brand); color: #fff; }
.langs a:not([aria-current]):hover { background: #e4ddff; }

/* 히어로 */
.hero { display: grid; gap: 28px; align-items: center; padding-top: 12px; padding-bottom: 40px; max-width: 1072px; margin: 0 auto; }
.hero > * { margin: 0; max-width: none; }
.hero h1 { font-size: clamp(40px, 9.5vw, 68px); color: var(--brand); text-shadow: 0 3px 0 rgba(42, 33, 64, 0.12); }
.sub { font-size: clamp(17px, 3.6vw, 21px); color: var(--ink-soft); margin: 16px 0 24px; max-width: 520px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 22px;
  border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(42, 33, 64, 0.22); }
.store:focus-visible, .langs a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; }
.store.soon { background: #d8d2ee; color: #6b6388; cursor: default; box-shadow: none; transform: none; }
.store span { text-align: center; line-height: 1.25; }
.badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: #fff; border: 2px solid #e4ddff; padding: 5px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.phone { justify-self: center; width: min(300px, 72vw); }
.phone video {
  width: 100%; aspect-ratio: 886 / 1920; object-fit: cover; border-radius: 38px; border: 8px solid #2a2140;
  background: #2a2140; box-shadow: 0 24px 50px rgba(90, 67, 214, 0.28); transform: rotate(2deg);
}

/* 섹션 공통 */
.how, .shots, .games, .price, .when, .faq, .cta, .contact { padding-top: 48px; padding-bottom: 24px; text-align: center; }
.how h2, .shots h2, .games h2, .price h2, .when h2, .faq h2, .cta h2, .contact h2 { text-align: center; }

.steps { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 16px; text-align: left; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 0 #e4ddff; }
.steps h3 { font-size: 22px; margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); font-size: 20px; }
.steps li:nth-child(2) .num { background: var(--red); }
.steps li:nth-child(3) .num { background: var(--green); }

/* 스크린샷 레일 */
.shots { padding-left: 0; padding-right: 0; }
.shots h2 { padding: 0 16px; }
.rail {
  list-style: none; margin: 22px 0 0; padding: 6px 16px 18px; max-width: none; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.rail li { flex: 0 0 auto; width: clamp(190px, 52vw, 240px); scroll-snap-align: center; }
.rail img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 10px 24px rgba(42, 33, 64, 0.16); background: #fff; }

.cats { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 12px; text-align: left; }
.cats li { background: var(--card); border-radius: 18px; padding: 16px 18px; border-left: 10px solid var(--c); box-shadow: 0 4px 0 #e4ddff; }
.cats h3 { font-size: 21px; margin-bottom: 4px; color: var(--ink); }
.cats p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.price { }
.price .lead { font-size: 20px; color: var(--ink); }

.chips { list-style: none; padding: 0; margin: 18px auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; }
.chips li { background: var(--c, #fff); background: #fff; border: 2px solid #e4ddff; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.chips li:nth-child(5n+1) { border-color: var(--red); }
.chips li:nth-child(5n+2) { border-color: var(--blue); }
.chips li:nth-child(5n+3) { border-color: var(--green); }
.chips li:nth-child(5n+4) { border-color: var(--yellow); }
.chips li:nth-child(5n) { border-color: var(--purple); }

.faq { max-width: 1040px; }
.faq details { background: var(--card); border-radius: 16px; padding: 4px 18px; margin: 10px auto; max-width: 720px; text-align: left; box-shadow: 0 3px 0 #e4ddff; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: inside; }
.faq details p { margin: 0 0 14px; color: var(--ink-soft); }

.cta { padding-top: 56px; }
.cta img { width: min(560px, 100%); margin: 0 auto 8px; border-radius: var(--radius); }
.cta .stores { justify-content: center; margin-top: 18px; }
.contact { padding-bottom: 8px; }
.contact p { margin: 4px auto; color: var(--ink-soft); }

footer { padding-top: 32px; padding-bottom: 48px; text-align: center; color: var(--ink-soft); font-size: 14px; }
footer p { margin: 4px auto; }

/* 문서(개인정보 처리방침) */
.prose { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.prose h1 { font-size: clamp(28px, 6vw, 40px); color: var(--brand); margin-bottom: 8px; }
.prose .meta { color: var(--ink-soft); margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }

@media (min-width: 820px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 40px; padding-bottom: 64px; }
  .steps, .cats { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cats li:last-child { grid-column: 1 / -1; }
  .rail { justify-content: center; overflow-x: visible; flex-wrap: nowrap; padding-left: 24px; padding-right: 24px; }
  .rail li { width: clamp(120px, 12.5vw, 150px); }
  .shots .rail li:nth-child(even) { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store, .store:hover { transition: none; transform: none; }
}
