/* 색은 로고(art/logo)에서 가져왔다: 주황 캐릭터, 금빛 궤도, 남색 글자, 우주 배경 */
:root {
  --navy: #0b1730;
  --space: #080d26;
  --orange: #ff5a14;
  --gold: #ffb822;
  --cream: #fff7ec;
  --paper: #ffffff;
  --text: #0b1730;
  --muted: #5d6680;
  --line: #f0e4d2;

  --display: "Jua", "Pretendard Variable", "Malgun Gothic", sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.75 var(--body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

p { margin: 0 0 10px; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ───── 머리 ───── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 13, 38, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font: 400 1.15rem/1 var(--display);
  white-space: nowrap;
}

.brand img { display: block; width: 28px; height: 34px; }

nav { display: flex; align-items: center; gap: 2px; }

nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: #c9d0ea;
  text-decoration: none;
  font-size: .93rem;
  white-space: nowrap;
}

nav a:hover, nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }

/* ───── 첫 화면 ───── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% 30%, rgba(76, 96, 214, .38), transparent 66%),
    linear-gradient(180deg, var(--space) 0%, #0d1438 100%);
}

.hero canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero .wrap { padding-top: 40px; padding-bottom: 52px; }

/* 로고에서 캐릭터 · 궤도 · 별 · 글자만 남긴 그림. 제목(h1) 자리에 쓴다 */
.hero-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 8px;
}

h1 {
  margin: 0;
  font: 400 clamp(2.1rem, 6.5vw, 3.1rem)/1.2 var(--display);
}

.lead { margin: 10px 0 0; font-size: 1.12rem; color: #e6eaf8; }

.lead-en { margin: 2px 0 0; color: #98a2c6; font-size: .92rem; }

/* ───── 구역 공통 ───── */
.band { padding: 64px 0; }

.cream { background: var(--cream); }

section[id] { scroll-margin-top: 74px; }

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font: 400 1.75rem/1.3 var(--display);
}

h2::before {
  content: "";
  width: 6px;
  height: 1.05em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.en { color: var(--muted); font-size: .93rem; }

/* 깽꼬꼬와의 뜻 */
.word {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 14px;
}

.word b {
  margin-right: 10px;
  color: #d6480d;
  font: 400 1.2rem/1 var(--display);
}

/* 개발 중인 게임 */
.line { border-top: 1px solid var(--line); }

h2 span {
  color: var(--muted);
  font: 700 .72rem/1 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 18px;
}

@media (min-width: 760px) {
  .games { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

.games img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 8px 18px -10px rgba(11, 23, 48, .45);
}

.games h3 { margin: 14px 0 4px; font-size: 1.05rem; font-weight: 800; }

.games p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* 회사 정보 */
.info {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.info > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4px 20px;
  align-items: baseline;
  padding: 15px 24px;
}

.info > div + div { border-top: 1px solid var(--line); }

.info dt { font-weight: 800; }

.info dt span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.info dd { margin: 0; }

.info dd a { color: #d6480d; font-weight: 700; }

.info .sub { display: block; color: var(--muted); font-size: .9rem; }

/* 버튼 */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover, .btn:focus-visible { filter: brightness(1.07); }

/* 바닥 */
footer { background: var(--space); color: #98a2c6; font-size: .86rem; }

footer .wrap { padding-top: 22px; padding-bottom: 24px; }

footer p { margin: 0; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; }

.notfound .hero-logo { width: 80px; margin-bottom: 4px; }

.notfound h1 { font-size: clamp(3.4rem, 14vw, 5.5rem); color: var(--gold); }

.notfound .btn { margin-top: 22px; }

/* 좁은 화면 */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-s, h2 span { display: none; }
  .brand { font-size: 1.05rem; }
  nav a { padding: 6px 8px; font-size: .88rem; }
  .hero .wrap { padding-top: 30px; padding-bottom: 40px; }
  .hero-logo { width: 240px; }
  .band { padding: 48px 0; }
  .info > div { grid-template-columns: 1fr; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
