: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); }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  color: var(--muted);
}
.logo-sm { font-weight: 900; color: var(--fg); }
.site-footer small { font-size: 14px; }

/* 태블릿 */
@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; }
  .site-footer .wrap { height: 72px; }
}
