/* 이지 엔트리 사이트 공통 스타일 (외부 글꼴, 스크립트 없이 시스템 글꼴만 써요) */
:root {
  --bg: #17191e;
  --bg-2: #1e2027;
  --card: #23252e;
  --line: #34374a;
  --text: #eef0f4;
  --sub: #a0a6b2;
  --purple: #7c62ff;
  --purple-2: #6e5ae6;
  --purple-light: #aca0f7;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-light); }
a:hover { color: #fff; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* 머리 */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 25, 30, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding: 8px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 26px; width: auto; }
/* ☰ 메뉴 */
.menu { position: relative; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: var(--card);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: var(--purple); }
.menu summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.menu[open] .nav { animation: menu-pop .15s ease-out; }
@keyframes menu-pop { from { opacity: 0; transform: translateY(-6px); } }
.nav a {
  color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--line); }
.nav a[aria-current="page"] { color: #fff; background: var(--purple-2); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; color: #fff; background: var(--purple-2);
  box-shadow: 0 8px 24px rgba(110, 90, 230, .35);
}
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); box-shadow: none; color: var(--text); }
.btn.ghost:hover { border-color: var(--purple-light); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 첫 화면 */
.hero {
  padding: 72px 0 56px; text-align: center;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(78, 58, 170, .45), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(52, 44, 110, .45), transparent 70%);
}
.hero .mark { width: min(440px, 80%); margin: 0 auto 10px; }
.hero .tag { font-size: clamp(20px, 3.4vw, 28px); font-weight: 800; color: var(--purple-light); margin: 0 0 8px; }
.hero .lead { color: var(--sub); margin: 0 auto 28px; max-width: 620px; }
.hero .btns { justify-content: center; }
.note { color: var(--sub); font-size: 13px; margin-top: 14px; }

/* 구역 */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: clamp(22px, 3.6vw, 30px); }
h3 { font-size: 20px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--purple-2); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.muted { color: var(--sub); }
.page-head { padding: 48px 0 8px; }

/* 카드 */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--sub); font-size: 15px; }
.card .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 10px; }

.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.media video, .media img { width: 100%; height: auto; }

/* 기능 하나 */
.feature { display: grid; gap: 24px; grid-template-columns: 1fr 1.2fr; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature p { color: var(--sub); margin: 0 0 8px; }
.feature ul { color: var(--sub); margin: 0; padding-left: 20px; }
.feature .shot { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.feature.text-only { grid-template-columns: 1fr; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 3px; }
.badge.new { background: #2bb673; color: #fff; }
.badge.off { background: var(--line); color: var(--text); }

/* 미니게임 */
.game-list { display: grid; gap: 18px; }
.game-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.game-card:hover { border-color: var(--purple); transform: translateY(-2px); color: var(--text); }
.game-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; align-self: center; }
.game-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
.game-body .badge { margin: 0; background: var(--purple-2); color: #fff; }
.game-body strong { font-size: 22px; }
.game-desc { color: var(--text); font-size: 15px; line-height: 1.6; }
.game-how { color: var(--sub); font-size: 13.5px; line-height: 1.6; }
.game-body .btn { margin-top: auto; }
.small { font-size: 13px; margin-top: 14px; }
@media (max-width: 760px) { .game-card { grid-template-columns: 1fr; } }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-nav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.cat-nav a:hover { border-color: var(--purple-light); }

/* 단계 */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 13px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

/* 업데이트 기록 */
.release { padding: 24px 0; }
.release + .release { border-top: 1px dashed var(--line); }
.release h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release ul { margin: 0; padding-left: 20px; color: var(--sub); }
.release li { margin: 4px 0; }
.release li b { color: var(--text); }

/* 글 */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--sub); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--card); color: var(--text); }
.prose td { color: var(--sub); }
.table-wrap { overflow-x: auto; }

/* 바닥 */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--sub); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--sub); }
.site-foot a:hover { color: var(--text); }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
}

/* 소스 코드 */
.src-section { padding-top: 24px; }
.src { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.src-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.src-list ul { list-style: none; margin: 0; padding: 0; }
.src-list li.dir { font-size: 12px; font-weight: 700; color: var(--sub); padding: 10px 8px 4px; }
.src-list a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; }
.src-list a:hover { background: var(--bg-2); }
.src-list a.on { background: var(--purple-2); color: #fff; }
.src-list a span { overflow-wrap: anywhere; font-family: Consolas, "D2Coding", monospace; }
.src-list a em { font-style: normal; font-size: 12px; color: var(--sub); }
.src-list a.on em, .src-list a.on small { color: #e9e4ff; }
.src-list a small { grid-column: 1 / -1; font-size: 12px; color: var(--sub); line-height: 1.4; }
.src-view { min-width: 0; background: #12141a; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.src-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.src-head b { font-family: Consolas, "D2Coding", monospace; font-size: 14px; overflow-wrap: anywhere; }
.src-head a { font-size: 13px; white-space: nowrap; }
.src-body { overflow: auto; max-height: 75vh; }
ol.code { margin: 0; padding: 12px 0 12px 56px; font: 13px/1.6 Consolas, "D2Coding", "Malgun Gothic", monospace; color: #dfe3ec; }
ol.code li { white-space: pre; padding-right: 16px; word-break: normal; overflow-wrap: normal; }
ol.code li::marker { color: #5c6170; font-size: 12px; }
.src-img { max-width: 320px; margin: 24px; background: repeating-conic-gradient(#2a2d38 0 25%, #20222b 0 50%) 0 0 / 16px 16px; border-radius: 8px; }
@media (max-width: 760px) {
  .src { grid-template-columns: 1fr; }
  .src-list { position: static; max-height: 320px; }
}
