:root {
  --bg: #0d0e12;
  --bg2: #14161c;
  --panel: #181b23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2eee6;
  --muted: #a39f97;
  --dim: #6f6c66;
  --red: #d6452f;
  --gold: #e3b866;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── 머리띠 ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(rgba(13, 14, 18, 0.88), rgba(13, 14, 18, 0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.seal {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--serif); font-weight: 900; font-size: 19px;
  border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.word { font-weight: 700; letter-spacing: 0.28em; font-size: 15px; line-height: 1; }
.word small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: 0.52em; color: var(--muted); font-weight: 500; }
.links { display: flex; gap: 28px; font-size: 15px; }
.links a { color: var(--muted); transition: color 0.2s; }
.links a:hover { color: var(--text); }

/* ── 첫 화면 ── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.mosaic {
  position: absolute; inset: -6% -10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  transform: rotate(-6deg) scale(1.08); opacity: 0.8; filter: saturate(0.95);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 18, 0.9) 0%, rgba(13, 14, 18, 0.62) 55%, rgba(13, 14, 18, 0.35) 100%),
    linear-gradient(180deg, rgba(13, 14, 18, 0.2), var(--bg) 96%);
}
.hero-in { position: relative; z-index: 2; max-width: 1180px; width: 100%; margin: 0 auto; padding: 130px 20px 90px; }
.eyebrow { margin: 0 0 14px; font-size: 12.5px; letter-spacing: 0.28em; color: var(--gold); font-weight: 500; }
.hero h1 {
  margin: 0 0 22px; font-family: var(--serif); font-weight: 900;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.18; letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.lead { margin: 0 0 34px; max-width: 640px; color: #d6d1c7; font-size: clamp(16px, 1.6vw, 19px); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px;
  padding: 13px 26px; border-radius: 3px; font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: #e75a42; transform: translateY(-1px); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.featured {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
  background: rgba(24, 27, 35, 0.78); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(6px); transition: border-color 0.2s;
}
.featured:hover { border-color: rgba(227, 184, 102, 0.6); }
.featured img { width: 48px; height: 48px; border-radius: 11px; }
.featured b { display: block; font-size: 15px; }
.featured em { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.featured i { font-style: normal; color: var(--gold); margin-left: 6px; }

/* ── 구역 ── */
main { position: relative; z-index: 2; }
.section { max-width: 1180px; margin: 0 auto; padding: 96px 20px 40px; }
.sec-head { margin-bottom: 56px; }
.section h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; }
.sec-sub { margin: 0; color: var(--muted); }

/* ── 게임 ── */
.game {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  padding: 44px 0; border-top: 1px solid var(--line);
}
.game.flip .visual { order: 2; }
.visual { position: relative; }
.visual .key {
  width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  transition: transform 0.4s;
}
.game:hover .visual .key { transform: scale(1.012); }
.gicon {
  position: absolute; left: 18px; bottom: -26px; width: 76px; height: 76px; border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--bg);
}
.game.flip .gicon { left: auto; right: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips span {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(227, 184, 102, 0.35); color: var(--gold);
}
.game h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.25; }
.game h3 small { font-size: 0.55em; color: var(--muted); font-weight: 600; margin-left: 6px; }
.desc { margin: 0 0 20px; color: #cfcac0; font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.shots.two { grid-template-columns: repeat(3, 1fr); }
.shots a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s, opacity 0.3s; opacity: 0.88; }
.shots a:hover img { transform: scale(1.06); opacity: 1; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
  font-size: 14px; font-weight: 500; transition: border-color 0.2s, background 0.2s;
}
.store:hover { border-color: var(--gold); background: #1f232d; }
.store .ico { color: var(--gold); font-size: 13px; width: 14px; text-align: center; }

/* ── 스튜디오 ── */
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; border-top: 1px solid var(--line); padding-top: 72px; }
.body { color: #cfcac0; font-size: 16.5px; margin: 0 0 16px; max-width: 620px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: linear-gradient(160deg, #1b1e27, #13151b); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 22px;
}
.stat:first-child { grid-column: span 2; }
.stat b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }
.stat em { display: block; font-style: normal; color: var(--dim); font-size: 13px; }

/* ── 문의 ── */
.contact-card {
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 44px 40px; border-radius: 14px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 69, 47, 0.22), transparent 55%),
    linear-gradient(160deg, #1a1d26, #121419);
}
.contact-card .body { margin: 0; }
.mail {
  font-size: clamp(16px, 2vw, 21px); font-weight: 700; padding: 16px 24px; border-radius: 8px;
  background: var(--red); color: #fff; word-break: break-all; transition: background 0.2s;
}
.mail:hover { background: #e75a42; }

/* ── 바닥 ── */
.foot { margin-top: 90px; border-top: 1px solid var(--line); background: #0a0b0e; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 40px 20px 46px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.logo.small .seal { width: 28px; height: 28px; font-size: 16px; }
.policies { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.policies span { color: var(--dim); }
.policies a:hover { color: var(--text); }
.biz { margin: 0 0 10px; color: var(--dim); font-size: 12.5px; line-height: 1.9; }
.copy { margin: 0; color: var(--dim); font-size: 12.5px; }

/* ── 크게 보기 ── */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 8, 0.92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1280px, 100%); max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); }
.lb-close {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--text); font-size: 26px; cursor: pointer;
}

/* ── 나타나기 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .game, .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .game.flip .visual { order: 0; }
  .game.flip .gicon { right: auto; left: 18px; }
  .hero-in { padding-top: 120px; }
}
@media (max-width: 560px) {
  .nav-in { padding: 12px 16px; }
  .links { gap: 16px; font-size: 14px; }
  .word small { display: none; }
  .hero { min-height: 88vh; }
  .hero-in { padding: 110px 16px 64px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .br-wide { display: none; }
  .section { padding: 72px 16px 24px; }
  .gicon { width: 60px; height: 60px; border-radius: 14px; bottom: -20px; }
  .contact-card { padding: 30px 22px; }
  .stat b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
