:root {
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --line: #e5e5e5;
  --soft: #f4f4f4;
  --accent: #ff5a36;
  --accent-ink: #c8381a; /* 흰 배경 위 작은 글자용, 대비 4.5:1 이상 */
  --radius: 14px;
  --gutter: 64px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--fg);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 내비 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.nav ul { display: flex; gap: 32px; }
.nav a:not(.logo) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
}
.nav a:not(.logo):hover { color: var(--fg); }

/* 공통 섹션 */
.eyebrow {
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav-h);
}
h2 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.03em;
}
h3 { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }

/* 히어로 */
.hero { padding: 136px 0 128px; scroll-margin-top: var(--nav-h); }
.hero h1 {
  font-size: 84px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 32px;
}
.lead {
  font-size: 21px;
  color: var(--muted);
  max-width: 640px;
}

/* 회사 */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.point {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.point h3 { margin-bottom: 12px; }
.point h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}
.point p { color: var(--muted); font-size: 16px; }

/* 게임 */
#games h2 { margin-bottom: 40px; }
.games {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}
.thumb-empty {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .035) 14px 15px),
    var(--soft);
}
.card-soon .thumb { flex: 1; min-height: 160px; aspect-ratio: auto; }
.body { padding: 24px 26px 28px; }
.body h3 { font-size: 24px; margin: 12px 0 4px; }
.body p { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: var(--fg);
  color: #fff;
  border-radius: 99px;
  padding: 7px 12px;
}
.tag-soon { background: #e8e8e8; color: #444; }

/* 문의 */
.contact-text { color: var(--muted); font-size: 19px; margin: 20px 0 28px; }
.mail {
  display: inline-block;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
  border-bottom: 4px solid var(--accent);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent-ink); }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  gap: 10px;
  padding-top: 32px;
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--fg); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.biz { color: var(--muted); }
.site-footer small { font-size: 13px; }

/* 문서 페이지(개인정보처리방침·약관·계정 삭제) */
.doc { padding: 88px 0 112px; }
.doc-wrap { max-width: 800px; }
.doc h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.doc-meta { color: var(--muted); font-size: 15px; margin: 14px 0 40px; }
.doc section { margin-top: 56px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 16px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p + p, .doc p + ul, .doc ul + p, .doc ol + p, .doc .table-scroll + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 8px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.toc {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 28px;
}
.toc ol { gap: 4px; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--soft); font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.doc-note { margin-top: 56px; color: var(--muted); }

/* 태블릿 */
@media (max-width: 960px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 64px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* 휴대폰 */
@media (max-width: 640px) {
  :root { --gutter: 20px; --nav-h: 60px; }
  body { font-size: 16px; }
  .logo { font-size: 20px; }
  .nav ul { gap: 20px; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 42px; margin-bottom: 24px; }
  .lead { font-size: 17px; }
  .section { padding: 72px 0; }
  h2 { font-size: 32px; }
  .points { grid-template-columns: 1fr; gap: 16px; }
  .point { padding: 26px 22px; }
  .games { grid-template-columns: 1fr; gap: 16px; }
  .card-soon .thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  #games h2 { margin-bottom: 28px; }
  .body { padding: 20px 22px 24px; }
  .mail { font-size: 26px; }
  .contact-text { font-size: 17px; }
  .doc { padding: 56px 0 80px; }
  .doc h1 { font-size: 34px; }
  .doc h2 { font-size: 22px; }
  .doc section { margin-top: 44px; }
  .toc { padding: 18px 20px; }
}
.nowrap { white-space: nowrap; }
