/* NEON SOUL 다운로드 사이트. 게임 타이틀의 톤(보라빛 어둠, 네온 하늘색·분홍)을 쓰되,
   게임 메뉴 흉내 대신 일반 게임 사이트 구성: 큰 히어로 + 다운로드 버튼, 스크린샷, 특징, 랭킹, 소식, 안내 */
:root {
  --void: #07040f; --void-2: #0f0920; --panel: rgba(20, 13, 40, 0.72); --line: rgba(141, 132, 179, 0.18);
  --ink: #f1edff; --text: #c9c2e6; --haze: #8d84b3;
  --soul: #ff2d6f; --soul-2: #ff5c8f; --circuit: #3dd8ff; --gold: #ffd23d; --mint: #3dffb4;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.65 var(--sans); background: var(--void); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
main { overflow-x: clip; }
h2, h3 { color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- 상단 ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(7, 4, 15, 0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font: italic 900 20px var(--display); color: var(--circuit); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { color: var(--soul); margin-left: 4px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.links a { color: var(--haze); text-decoration: none; transition: color 0.15s; }
.links a:hover { color: var(--ink); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; text-decoration: none; border-radius: 999px;
  font-weight: 700; transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--circuit); outline-offset: 3px; }
.btn-sm { padding: 8px 18px; font-size: 14px; color: #fff; background: var(--soul); }
.btn-sm:hover { background: var(--soul-2); }
.btn-main {
  padding: 14px 34px; color: #fff; background: linear-gradient(135deg, var(--soul), #ff4f86);
  box-shadow: 0 10px 32px rgba(255, 45, 111, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 45, 111, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-main[aria-disabled="true"] { background: #3a3150; box-shadow: none; transform: none; cursor: default; }
.btn-t { font-size: 20px; line-height: 1.2; }
.btn-s { font-size: 12.5px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.btn-ghost { padding: 14px 26px; color: var(--ink); border: 1px solid rgba(241, 237, 255, 0.28); font-size: 16px; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.05); }

/* ---------- 히어로 ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; padding: 72px clamp(16px, 6vw, 72px) 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0.55; transform: scale(1.22); } /* 위아래 HUD(골드·점수·HP)가 잘리게 */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(7, 4, 15, 0.88) 38%, rgba(7, 4, 15, 0.35) 75%, rgba(7, 4, 15, 0.55) 100%),
    linear-gradient(0deg, var(--void) 0%, transparent 30%);
}
.hero-in { max-width: 620px; }
.logo { font: italic 900 clamp(64px, 11vw, 132px)/0.84 var(--display); margin: 0; letter-spacing: -0.03em; color: var(--circuit); text-shadow: 0 0 24px rgba(61, 216, 255, 0.45); }
.logo > span { display: block; color: var(--soul); text-shadow: 0 0 26px rgba(255, 45, 111, 0.55); }
.logo .beat { display: inline-block; font-style: normal; animation: beat 1.1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.07); } }
.tag { margin: 26px 0 10px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.lead { margin: 0 0 30px; font-size: 17px; color: var(--text); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { font-size: 13px; color: var(--text); padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(15, 9, 32, 0.6); }

/* ---------- 스크린샷 ---------- */
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1200px;
  margin: -48px auto 0; padding: 0 clamp(16px, 4vw, 40px); position: relative;
}
.shot { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.shot:hover img { transform: scale(1.04); }
.shot:focus-visible { outline: 2px solid var(--circuit); outline-offset: 2px; }

/* ---------- 구역 공통 ---------- */
.sec { max-width: 1120px; margin: 0 auto; padding: 104px clamp(16px, 4vw, 40px) 0; }
.sec > h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--circuit); }

/* 특징: 그림과 글을 번갈아 */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; margin-bottom: 64px; }
.feature img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.feature.flip img { order: 2; }
.feature h3 { font-size: 24px; margin-bottom: 12px; }
.feature p { margin: 0; font-size: 16.5px; }

/* 하트 */
.hearts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hearts li {
  --c: var(--soul); position: relative; padding: 22px 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.hearts .hh { font-size: 34px; line-height: 1; color: var(--c); text-shadow: 0 0 16px var(--c); margin-bottom: 14px; }
.hearts b { display: block; color: var(--ink); font-size: 18px; }
.hearts small { display: block; color: var(--c); font-size: 13px; margin-bottom: 8px; }
.hearts p { margin: 0; font-size: 14px; color: var(--text); }
.hearts .lock { margin-top: 12px; font-size: 12px; color: var(--haze); }

/* 함께하기 */
.coop { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.coop h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 18px; }
.coop p { margin: 0; font-size: 16.5px; }
.coop-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.coop-points li { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.coop-points b { display: block; color: var(--ink); font-size: 17px; }
.coop-points span { font-size: 14.5px; color: var(--text); }

/* 랭킹 */
.rank-ctl { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--haze); font: 600 14px var(--sans); padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: color 0.15s, background 0.15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: rgba(61, 216, 255, 0.16); color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--circuit); outline-offset: 1px; }
.board { list-style: none; padding: 6px 0; margin: 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.board li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.board li:first-child { border-top: 0; }
.board .pos { font: italic 900 18px var(--display); color: var(--haze); }
.board li:nth-child(1) .pos { color: var(--gold); }
.board li:nth-child(2) .pos { color: #d7d2ec; }
.board li:nth-child(3) .pos { color: #e09a5a; }
.board .nick { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .ttl { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--gold); }
.board .hrt { font-size: 13px; }
.board .val { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; text-align: right; }
.board .val.win { color: var(--mint); }
.board .empty { display: block; color: var(--haze); text-align: center; padding: 28px 20px; }
.foot-note { margin: 12px 0 0; font-size: 13px; color: var(--haze); }

/* 패치 노트 */
.note-block { padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.note-block h3 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.note-block h3 .ver { color: var(--circuit); font: italic 900 17px var(--display); }
.note-block h3 small { font-size: 13px; font-weight: 400; color: var(--haze); }
.note-block ul { margin: 12px 0 0; padding-left: 20px; }
.note-block li { margin: 4px 0; }
details.older summary { cursor: pointer; color: var(--haze); font-size: 14px; margin: 8px 0 14px; }

/* 설치 안내 */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; color: var(--ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--haze); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 2px solid var(--circuit); outline-offset: 2px; }
.faq details p { margin: 0 0 18px; }

/* 아래 */
.foot { max-width: 1120px; margin: 120px auto 0; padding: 32px clamp(16px, 4vw, 40px) 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--haze); }
.foot p { margin: 0; }

/* 스크린샷 크게 보기 */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); }
.lightbox::backdrop { background: rgba(4, 2, 10, 0.88); }
.lightbox img { width: 100%; border-radius: 10px; }
.lb-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(7, 4, 15, 0.8); color: var(--ink); font-size: 16px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo .beat { animation: none; }
  .btn, .shot img { transition: none; }
}

/* ---------- 좁은 화면 ---------- */
@media (max-width: 960px) {
  .hearts { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .top { justify-content: space-between; }
  .hero { min-height: auto; padding-top: 56px; padding-bottom: 64px; }
  .hero-bg img { object-position: 70% 50%; opacity: 0.4; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7, 4, 15, 0.7), var(--void) 95%); }
  .feature, .feature.flip, .coop { grid-template-columns: 1fr; }
  .feature.flip img { order: 0; }
  .sec { padding-top: 80px; }
  .board li { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px 14px; }
  .board .hrt { display: none; }
}
@media (max-width: 520px) {
  .hearts { grid-template-columns: repeat(2, 1fr); }
  .btn-main, .btn-ghost { width: 100%; align-items: center; text-align: center; }
  .seg { width: 100%; justify-content: space-between; }
  .seg button { padding: 7px 10px; }
}
