/* 펌프 잇 업 PHOENIX 2 색감: 짙은 청록 바탕 + 형광 초록·연두 + 청색 레이저 */
:root {
  --bg: #04121c;
  --bg2: #062a2e;
  --panel: rgba(6, 34, 40, .78);
  --line: rgba(80, 255, 140, .22);
  --text: #eafff0;
  --muted: #9fd8c0;
  --neon: #39ff6a;      /* 형광 초록 */
  --lime: #d4ff3a;      /* 연두·노랑 */
  --cyan: #3ad8ff;      /* 청색 레이저 */
  --frame: #2bdc3c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); min-height: 100vh; word-break: keep-all;
  font: 16px/1.65 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background-color: var(--bg);
  /* 레이저 + 빛 번짐 */
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(57,255,106,.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(58,216,255,.08), transparent 70%),
    linear-gradient(28deg, transparent 49.6%, rgba(57,255,106,.18) 49.85%, rgba(57,255,106,.18) 50%, transparent 50.2%),
    linear-gradient(-34deg, transparent 49.7%, rgba(58,216,255,.15) 49.85%, transparent 50%),
    linear-gradient(64deg, transparent 49.8%, rgba(212,255,58,.10) 49.9%, transparent 50%),
    linear-gradient(-70deg, transparent 49.8%, rgba(57,255,106,.10) 49.9%, transparent 50%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
}
/* 화면 테두리 초록 프레임 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  border: 3px solid var(--frame); opacity: .7;
}
a { color: var(--lime); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(3, 18, 24, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; padding-top: 6px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.2px; }
.logo img { border-radius: 50%; }
.menu { display: flex; gap: 4px; }
.menu a { white-space: nowrap; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.menu a:hover { color: var(--text); }
.menu a.on { color: #03200b; background: var(--neon); box-shadow: 0 0 8px rgba(57,255,106,.35); }

.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 {
  font-family: "Black Han Sans", sans-serif; font-weight: 400;
  font-size: clamp(32px, 7vw, 60px); line-height: 1.15; margin: 0 0 16px; letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #f4ffd0 40%, var(--lime) 62%, var(--neon) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(57,255,106,.3)) drop-shadow(2px 2px 0 #06380f);
}
.hero p { color: var(--muted); max-width: 680px; margin: 0 auto 8px; }
.ver {
  display: inline-block; margin-top: 8px !important; padding: 4px 14px; border-radius: 999px;
  font-weight: 800; color: #03200b !important; background: var(--lime);
  box-shadow: none;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 20px 0 32px; }
.card {
  background: var(--panel); border: 2px solid var(--line); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--neon); box-shadow: 0 0 12px rgba(57,255,106,.2); transform: translateY(-2px); }
.card.link { text-decoration: none; color: var(--text); }
.card h2 { margin: 0; font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .5px; color: #fff; }
.ico { font-size: 30px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }
.center { text-align: center; }
.meta { color: var(--muted); font-size: 13px; margin: 4px 0 0; min-height: 1em; }
.btn {
  margin-top: 12px; display: block; text-align: center; padding: 14px 16px; border-radius: 14px;
  font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .5px;
  color: #03200b; text-decoration: none;
  background: linear-gradient(180deg, #f4ffb0 0%, var(--lime) 35%, var(--neon) 100%);
  border: 2px solid #0b5a1c;
  box-shadow: 0 0 8px rgba(57,255,106,.3), inset 0 -3px 0 rgba(0,0,0,.18);
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 14px rgba(57,255,106,.5), inset 0 -3px 0 rgba(0,0,0,.18); }

.notes { background: var(--panel); border: 2px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 16px; padding: 20px 24px; margin-bottom: 32px; }
.notes h3 { margin: 0 0 8px; font-size: 17px; color: var(--cyan); }
.notes ul { margin: 0; padding-left: 20px; color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.features li { background: rgba(6,34,40,.55); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: 15px; }
.features b { display: block; color: var(--lime); font-size: 16px; margin-bottom: 2px; }

/* 매뉴얼 */
.manual-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; }
.toc { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.toc a.h3 { padding-left: 12px; font-size: 13px; }
.toc a:hover { color: var(--neon); }
.md { min-width: 0; background: rgba(3,18,24,.72); border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 28px; }
.md h1 { font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 34px; color: var(--lime); text-shadow: none; }
.md h2 { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 80px; color: var(--neon); }
.md h2 a { color: var(--neon); }
.md h3 { scroll-margin-top: 80px; color: var(--cyan); }
.md img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.md table { border-collapse: collapse; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; }
.md th { background: rgba(57,255,106,.1); }
.md code { background: rgba(57,255,106,.1); color: var(--lime); padding: 1px 5px; border-radius: 4px; font-size: 90%; }
.md pre { background: rgba(0,0,0,.35); padding: 12px; border-radius: 8px; overflow-x: auto; }
.md pre code { padding: 0; }
.md blockquote { margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--lime); background: rgba(212,255,58,.06); border-radius: 0 10px 10px 0; color: var(--muted); }

.foot { display: flex; justify-content: space-between; padding: 32px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 32px; }

@media (max-width: 760px) {
  .manual-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .md { padding: 4px 16px 20px; }
  .hero { padding-top: 36px; }
  .menu a { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
  .logo span { display: none; }
  .menu { gap: 2px; }
  body::before { border-width: 2px; }
}

/* ---------- 소개(장면 스크롤) ---------- */
html.snap { scroll-snap-type: y mandatory; scroll-padding-top: 60px; }
.scene {
  position: relative; min-height: calc(100svh - 60px); display: flex; align-items: center;
  scroll-snap-align: start; scroll-snap-stop: always; padding: 32px 0; overflow: hidden;
}
.scene > .wrap { width: 100%; }
html.snap .foot { scroll-snap-align: end; }
body:not([data-tab="home"]) .story { display: none; }

.hero-scene .hero, .end-scene .hero { text-align: center; padding: 0 28px; }
.hero-icon { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 26px rgba(255,79,163,.45); margin-bottom: 14px; }
.hero .sub { color: var(--lime); font-weight: 800; font-size: clamp(16px, 2.6vw, 21px); margin: 0 auto 12px; }
.hero .desc { color: var(--muted); max-width: 760px; margin: 0 auto 16px; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.cta .btn { margin: 0; min-width: 180px; }
.btn.ghost { background: transparent; color: var(--lime); border: 2px solid var(--lime); box-shadow: none; }
.btn.ghost:hover { background: rgba(212,255,58,.1); }
.platforms { margin-top: 18px; color: var(--muted); font-size: 14px; letter-spacing: 2px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: none; border: 0; color: var(--neon); font-size: 22px; cursor: pointer; animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

.feat { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.feat.flip .txt { order: 2; }
.num {
  font-family: "Black Han Sans", sans-serif; font-size: 64px; line-height: 1; color: transparent;
  -webkit-text-stroke: 2px var(--neon); opacity: .8;
}
.feat h2 {
  font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 10px 0 14px;
  background: linear-gradient(180deg, #fff 0%, #f4ffd0 45%, var(--lime) 70%, var(--neon) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feat .txt p { color: var(--muted); font-size: 17px; margin: 0; }
.shots { position: relative; padding: 0 0 40px 0; }
.shots .pc { width: 100%; border-radius: 12px; border: 2px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.55); display: block; }
.shots .phone {
  position: absolute; right: -14px; bottom: 0; width: 26%; border-radius: 18px;
  border: 3px solid #0d2a22; box-shadow: 0 0 0 2px var(--neon), 0 18px 40px rgba(0,0,0,.6);
}
.feat.flip .shots .phone { right: auto; left: -14px; }

/* 나타나기 */
.rv, .rv-l, .rv-r { opacity: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv { transform: translateY(26px); }
.rv-l { transform: translateX(-60px); }
.rv-r { transform: translateX(60px); }
.scene.in .rv, .scene.in .rv-l, .scene.in .rv-r { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv, .rv-l, .rv-r { opacity: 1; transform: none; transition: none; } }

.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 20; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--neon); background: transparent; padding: 0; cursor: pointer; transition: all .2s; }
.dots button.on { background: var(--neon); box-shadow: 0 0 8px var(--neon); height: 22px; border-radius: 6px; }

/* ---------- 다운로드(한 화면) ---------- */
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 36px 0 4px; }
.page-head.col { flex-direction: column; align-items: flex-start; gap: 6px; }
.page-head h1 { font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 40px; margin: 0; color: var(--lime); }
.page-head .ver { margin: 0 !important; }
.dl .cards { margin: 18px 0; }
.dl .card { padding: 20px 22px; }
.dl .notes { margin-bottom: 16px; padding: 16px 22px; max-height: 26vh; overflow: auto; }

@media (max-width: 760px) {
  html.snap { scroll-snap-type: y proximity; }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .feat.flip .txt { order: 0; }
  .num { font-size: 44px; }
  .feat .txt p { font-size: 15px; }
  .shots { padding: 0; display: flex; justify-content: center; }
  .shots .pc { display: none; }
  .shots .phone, .feat.flip .shots .phone { position: static; width: auto; max-width: 70vw; max-height: 52svh; }
  .dots { right: 8px; }
  .dots button { width: 8px; height: 8px; }
  .dots button.on { height: 18px; }
  .cta .btn { min-width: 0; flex: 1; }
}

.card-head { display: flex; align-items: center; gap: 10px; }
.card-head .ico { font-size: 24px; }
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.spec th { color: var(--lime); font-weight: 700; text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.spec td { padding: 4px 6px; color: var(--text); border-bottom: 1px solid rgba(80,255,140,.08); }
.spec td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
.dl .page-head { padding-top: 24px; }
.dl .cards { margin: 14px 0; }
.dl .card { padding: 16px 20px; gap: 4px; }
.dl .btn { margin-top: 10px; padding: 11px 16px; }
.dl .notes { max-height: 18vh; padding: 12px 20px; margin-bottom: 10px; }
.dl .notes h3 { font-size: 15px; margin-bottom: 4px; }

/* ---------- 매뉴얼: 안드로이드 / PC 나눠 보기 ---------- */
.plat-switch { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.plat-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.plat-switch button.on { background: var(--neon); color: #03200b; }
#tab-manual .manual-layout { padding-top: 16px; }
.toc details > summary { display: none; }
.m-common > p:first-child { font-size: 17px; }
@media (max-width: 760px) {
  .toc { display: block; position: static; max-height: none; }
  .toc details > summary { display: block; cursor: pointer; font-weight: 700; color: var(--lime); }
  .toc details[open] #toc { max-height: 50vh; overflow: auto; margin-top: 8px; }
  .plat-switch { width: 100%; }
  .plat-switch button { flex: 1; }
}

/* ---------- 후원 ---------- */
.donate { display: flex; justify-content: center; margin: 28px 0 24px; }
.donate-card {
  width: 100%; max-width: 460px; text-align: center; padding: 32px 28px; border-radius: 20px;
  background: var(--panel); border: 2px solid var(--line); box-shadow: 0 0 24px rgba(57,255,106,.12);
}
.donate-ico { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.donate-card h2 { font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 28px; margin: 0 0 8px; color: #fff; }
.donate-card .btn { margin-top: 18px; }
