/* 게임 브랜드 홈페이지
 *
 * ── 왜 이 모습인가 ────────────────────────────────────────────────
 * 교육 사이트(크림빛 바탕, 고운바탕 세리프, 주황)와 **한눈에 다른 물건**으로 보여야 한다.
 * 같은 사람이 만든 티가 나면 스토어에서 브랜드를 나눈 의미가 없다.
 * 그래서 정반대로 잡았다 — 어두운 바탕, 굵은 각진 제목 글꼴, 차가운 청록.
 *
 * 게임마다 고유색(accent)이 있어서 카드와 상세 페이지는 그 색을 변수로 받아 칠한다.
 * 사이트 색을 세 게임에 억지로 입히지 않는다. 게임이 주인공이다.
 */

:root {
  --void: #0b0d14;
  --panel: #141826;
  --panel-2: #1b2032;
  --ink: #eef1f8;
  --ink-2: #b8c1d6;
  --muted: #8791a8;          /* #0b0d14 위에서 5.6:1 */
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --brand: #5fe3d0;          /* 어두운 바탕 위 작은 글자까지 읽히는 청록 */
  --brand-ink: #06231f;
  --accent: var(--brand);    /* 게임 페이지에서 덮어쓴다 */
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Black Han Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-break: keep-all;      /* 한국어는 어절 단위로 줄이 바뀌어야 읽힌다 */
  text-wrap: balance;
}

/* 한국어는 어절 단위로 줄이 바뀌어야 읽힌다.
   제목만 걸어 뒀더니 본문이 '웹과 모바일 / 에서', '다음 판 / 에 남는 것' 으로 갈렸다. */
p, li, figcaption, .tag, .meta, .biz { word-break: keep-all; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── 머리말 ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.mark { display: flex; align-items: baseline; gap: 9px; }
.mark b { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .04em; }
.mark span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.top nav a:hover { color: var(--brand); }

/* ── 첫 화면 ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(125% 95% at 12% 4%, rgba(11,13,20,.18) 0%, rgba(11,13,20,.86) 60%, var(--void) 100%),
    linear-gradient(180deg, rgba(11,13,20,.20), var(--void));
}
.hero .wrap { position: relative; padding: 104px 0 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; color: var(--brand);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 14px;
}
.hero h1 { font-size: clamp(38px, 7.2vw, 74px); margin: 22px 0 18px; }
.hero p { max-width: 46ch; color: var(--ink-2); font-size: clamp(15px, 1.6vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; border: 1px solid var(--line-2);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-fill { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ── 구획 ───────────────────────────────────────────────── */
section { padding: 84px 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.head p { color: var(--muted); font-size: 14px; }

/* ── 게임 카드 ───────────────────────────────────────────── */
.games { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card-shot { position: relative; aspect-ratio: 16 / 10; background: var(--panel-2); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; }
.card-shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,24,38,.92) 100%);
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title img { width: 30px; height: 30px; border-radius: 8px; }
.card-title h3 { font-size: 20px; color: var(--accent); }
.card-body .tag { color: var(--ink-2); font-size: 14px; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.more { font-size: 13px; font-weight: 700; color: var(--accent); }

.chip {
  display: inline-block; font-size: 11px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── 게임 상세 ───────────────────────────────────────────── */
.detail-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.detail-hero .bg { position: absolute; inset: 0; }
.detail-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.detail-hero .bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,20,.45), rgba(11,13,20,.94) 78%, var(--void));
}
.detail-hero .wrap { position: relative; padding: 88px 0 64px; }
.detail-hero h1 { font-size: clamp(32px, 6vw, 60px); color: var(--accent); margin: 16px 0 14px; }
.detail-hero .tag { font-size: clamp(15px, 2vw, 20px); color: var(--ink); max-width: 40ch; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink-2); font-weight: 600; }

.lede { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 62ch; }
.points { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 34px; }
.point { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.point h4 { font-size: 15px; margin-bottom: 6px; color: var(--accent); }
.point p { font-size: 14px; color: var(--ink-2); }

.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.shots figure { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shots figcaption { padding: 12px 16px 16px; font-size: 13px; color: var(--muted); }

.back { display: inline-block; margin-top: 40px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--brand); }

/* ── 본문 문서(방침·문의) ─────────────────────────────────── */
.doc { max-width: 72ch; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h2:first-of-type { margin-top: 24px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ── 꼬리말 ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: #080a10; padding: 48px 0 60px; }
.foot .mark b { font-size: 17px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px 60px; margin-top: 22px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.foot nav a:hover { color: var(--brand); }
.biz { font-size: 12px; color: var(--muted); line-height: 2; max-width: 64ch; }
.biz span { display: inline-block; margin-right: 14px; white-space: nowrap; }
.copy { margin-top: 26px; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .top nav { gap: 14px; font-size: 13px; }
  .mark span { display: none; }
  section { padding: 60px 0; }
  .hero .wrap { padding: 76px 0 64px; }
  .detail-hero .wrap { padding: 64px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
