:root {
  color-scheme: dark;
  --bg: #14132a;
  --surface: #211f3d;
  --line: #34315a;
  --text: #eceafd;
  --muted: #a7a3c9;
  --gold: #f5c542;
  --coral: #ff6b6b;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--gold); text-underline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 9; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { border-radius: 10px; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a:focus-visible { color: var(--text); }
.nav-download { color: var(--bg) !important; background: var(--gold); padding: 6px 14px; border-radius: 999px; font-weight: 700; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.intro { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.18; margin: 0 0 20px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text); margin: 0 0 28px; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin: 0 0 24px; letter-spacing: -0.01em; }
h2.sub { margin-top: 36px; font-size: clamp(22px, 2.8vw, 28px); }
h3 { font-size: 22px; margin: 20px 0 8px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 14px; background: var(--gold); color: var(--bg); text-decoration: none; font-weight: 700; }
.store img { filter: brightness(0) saturate(100%) invert(9%) sepia(14%) saturate(2400%) hue-rotate(210deg); }
.store-soon { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.store-soon img { filter: invert(72%) sepia(9%) saturate(700%) hue-rotate(205deg); }
.store-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.phone { margin: 0; justify-self: center; width: min(320px, 78vw); border-radius: 36px; padding: 10px; background: #0b0a1a; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.phone img { border-radius: 27px; }
.hero-phone { transform: rotate(2deg); }

.games { padding: 56px 0; border-top: 1px solid var(--line); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.game { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.game .phone { width: 100%; max-width: 240px; box-shadow: none; }
.game p { color: var(--muted); margin: 0 0 10px; }
.tag { color: var(--gold) !important; font-size: 14px; font-weight: 600; }

.tools, .packs { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.packs p { color: var(--muted); }
.tool-list { list-style: none; padding: 0; margin: 0 0 28px; }
.tool-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.tool-list strong { color: var(--text); margin-right: 10px; }
.pick { background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; }
.pick-label { margin: 0; color: var(--muted); font-size: 14px; }
.pick-result { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin: 6px 0 16px; min-height: 2.6em; color: var(--gold); }
.pick-button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 26px; background: var(--gold); color: var(--bg); cursor: pointer; min-height: 48px; }
.pick-button:focus-visible, .store:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.pick-note { color: var(--muted); font-size: 14px; }

.faq { padding: 72px 0; border-top: 1px solid var(--line); }
.faq details { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }

.download { text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.download .stores { justify-content: center; }
.footer { padding: 28px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.small { font-size: 13px; }

@media (max-width: 860px) {
  .hero, .tools, .packs { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 16px; }
  .packs .phone { order: 2; }
  .game-grid { grid-template-columns: 1fr; }
  nav a:not(.nav-download) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phone { transform: none; }
}
