@charset "UTF-8";
/* 왕별 AI LAB 소개 페이지. 운영 주소는 /ai/lab/, 글꼴과 로고는 게임 누리집(/ai/game/) 것을 같이 쓴다. */

/* 글꼴: Pretendard GOV(OFL) 는 게임 누리집이 자주 쓰는 한글 2,350자 + 영문만 남긴 판. 400 과 800 두 굵기만 쓴다(첫 화면 무게) */
@font-face { font-family: "PretendardGOV"; font-weight: 400; font-display: swap; src: url("/ai/game/fonts/PretendardGOV-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "PretendardGOV"; font-weight: 800; font-display: swap; src: url("/ai/game/fonts/PretendardGOV-ExtraBold.subset.woff2") format("woff2"); }
/* 갈무리11 굵게(OFL, fonts/OFL-Galmuri.txt). 이 페이지의 픽셀 글꼴 자리에 나오는 글자만 남긴 판, 줄이는 법은 lab.js 맨 위 주석 */
@font-face { font-family: "LabPixel"; font-weight: 400; font-display: swap; src: url("../fonts/galmuri11-bold.lab.woff?v=1204b") format("woff"); }   /* 글자를 더하면 ?v= 를 바꾼다(글꼴은 하루 캐시) */

:root {
  --bg: #070b16;
  --bg-2: #0a1020;
  --bg-3: #0e1629;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eef2f9;
  --sub: #a3aec4;
  --dim: #6f7b94;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --gold: #fbbf24;
  --gold-2: #fcd34d;
  --gold-ink: #1c1405;
  --mint: #34d399;
  --red: #f87171;
  --font: "PretendardGOV", "Pretendard GOV", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-px: "LabPixel", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --stage: radial-gradient(70% 40% at 50% 96%, rgba(255, 255, 255, 0.09), transparent 72%), linear-gradient(180deg, #19213a, #0f1528);
  --wrap: 1200px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7;
  letter-spacing: -0.005em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 76px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.px { font-family: var(--font-px); font-weight: 400; letter-spacing: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 단추 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 15.5px; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 14px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 28px -10px rgba(251, 191, 36, .65), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 14px 34px -10px rgba(251, 191, 36, .8), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-glass { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: var(--text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); }
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .gh { width: 18px; height: 18px; fill: currentColor; }
.is-soon { cursor: not-allowed; color: var(--sub); }
.is-soon:hover, .is-soon:active { transform: none; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.soon { font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold-2); padding: 3px 8px; border-radius: 999px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .3); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-px); font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--gold-2); margin: 0; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 10px rgba(251, 191, 36, .7); }
.chip { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800; line-height: 1.3; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--sub); }
.chip-gold { color: var(--gold-2); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .32); }
.chip-blue { color: #bfdbfe; background: rgba(59, 130, 246, .14); border-color: rgba(96, 165, 250, .32); }

/* ---------- 머리줄 ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .25s, border-color .25s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); }
.top.solid { background: rgba(7, 11, 22, .84); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.top-in { max-width: calc(1280px + 2 * var(--gut)); margin: 0 auto; height: 64px; padding: 0 var(--gut); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; }
.brand-logo { display: block; height: 26px; width: auto; }
.brand-lab { font-weight: 800; font-size: 15px; letter-spacing: .02em; padding-left: 10px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.brand.no-logo .brand-lab { padding-left: 0; border-left: 0; }
.brand.no-logo .brand-lab::before { content: "왕별 "; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; color: var(--sub); white-space: nowrap; transition: color .15s, background-color .15s; }
.menu a:hover, .menu a.on { color: var(--text); background: rgba(255, 255, 255, .07); }
.menu-ext { display: none; }
.top-right { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--sub); white-space: nowrap; }
.top-link:hover { color: var(--text); }
.top-right .btn { margin-left: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: 4px; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-grid; }
  .menu {
    position: fixed; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top, 0px)); margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gut) 20px; background: rgba(7, 11, 22, .97); border-bottom: 1px solid var(--line); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .menu.open { display: flex; }
  .menu a { min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 16px; }
  .menu-ext { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) { .top-link { display: none; } .top-right .btn { margin-left: 0; } }
@media (max-width: 380px) { .top-in { gap: 10px; } .brand-logo { height: 22px; } .brand-lab { font-size: 13.5px; padding-left: 8px; } .top-right .btn-sm { padding: 0 12px; font-size: 13.5px; } }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(104px, 13.5vh, 176px) var(--gut) var(--zone, 290px); background: #080c1e;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; image-rendering: crisp-edges;
}
.hero-art img { image-rendering: pixelated; }
/* 세 층(하늘 · 먼 산 · 가까운 땅)은 같은 자리 같은 크기로 겹친다. 스크롤 시차는 층 상자를 세로로만 옮긴다 */
.ly { position: absolute; inset: 0; display: block; }
.ly-sky, .ly-far { will-change: transform; }
.hero-fx { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: none; pointer-events: none; }
.hero-fx.on { display: block; }
.hero:not(.art-hd) .hero-fx { top: auto; bottom: 0; }
.fx { position: absolute; display: block; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; }
@keyframes fx6 { to { background-position-x: 120%; } }
@keyframes fx4 { to { background-position-x: 133.333%; } }
@media (prefers-reduced-motion: reduce) { .hero-fx { display: none !important; } .ly { transform: none !important; } }
.hero-walk { position: absolute; left: 0; right: 0; bottom: var(--walk-b, 120px); height: var(--walk-h, 192px); pointer-events: none; }
.hero-walk .trk { position: absolute; left: 100%; bottom: 0; display: flex; align-items: flex-end; animation: herowalk var(--dur, 60s) linear infinite; will-change: transform; }
.hero-walk .w { position: relative; flex: none; width: var(--walk-h, 192px); height: var(--walk-h, 192px); }
@keyframes herowalk { to { transform: translateX(calc(-1 * var(--dist, 3000px))); } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 22, .6) 0, rgba(7, 11, 22, 0) 160px),
    radial-gradient(52% 42% at 50% 36%, rgba(7, 11, 22, .42), rgba(7, 11, 22, 0) 72%),
    linear-gradient(0deg, #070b16 0, rgba(7, 11, 22, 0) 48px);
}
/* 스파크 배경(공방 언덕, 236): 하늘과 별이 보이게 위 기준, 장면 위에 얹힌 글이 읽히게 글 뒤를 더 어둡게 */
.hero.art-hd .hero-art img { top: 0; bottom: auto; object-position: 50% 0; }
.hero.art-hd .hero-shade {
  background:
    linear-gradient(180deg, rgba(7, 11, 22, .55) 0, rgba(7, 11, 22, 0) 140px),
    radial-gradient(56% 44% at 50% 42%, rgba(7, 11, 22, .66), rgba(7, 11, 22, .28) 58%, rgba(7, 11, 22, 0) 78%),
    linear-gradient(0deg, #070b16 0, rgba(7, 11, 22, 0) 140px);
}
.hero-in { position: relative; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12px; line-height: 1.5; letter-spacing: .14em; color: var(--gold-2); background: rgba(7, 11, 22, .5); border: 1px solid rgba(251, 191, 36, .35); }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 5.8vw, 78px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; text-shadow: 0 4px 32px rgba(7, 11, 22, .55); text-wrap: balance; }
.hero h1 .hl { background: linear-gradient(92deg, #fde68a 0%, #fbbf24 48%, #fb923c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 24px rgba(251, 146, 60, .35)); }
.hero-lead { max-width: 33em; margin-top: 22px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.72; color: #dbe2f0; text-shadow: 0 2px 14px rgba(7, 11, 22, .85); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-cta .btn-glass { background: rgba(9, 13, 30, .62); border-color: rgba(255, 255, 255, .22); }
.hero-cta .btn-glass:hover { background: rgba(9, 13, 30, .78); }
.hero-proof { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 26px; padding: 5px 16px 5px 6px; border-radius: 999px; font-size: 14px; color: #cfd7e8; background: rgba(7, 11, 22, .5); border: 1px solid var(--line); transition: border-color .15s; }
.hero-proof:hover { border-color: var(--line-2); }
.hero-proof b { color: var(--text); font-weight: 800; }
.faces { display: inline-flex; }
.faces img { width: 32px; height: 32px; border-radius: 9px; border: 2px solid #0b1124; margin-left: -9px; background: #0b1124; }
.faces img:first-child { margin-left: 0; }
@media (max-width: 520px) {
  .hero { padding-top: clamp(96px, 13vh, 130px); }
  .hero-cta { width: 100%; max-width: 360px; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-lead { font-size: 15.5px; }
  .faces img { width: 28px; height: 28px; }
}

/* ---------- 누적 규모 ---------- */
.scale { position: relative; padding: 8px 0 24px; }
.scale-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 56px; padding: 34px 38px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.scale-card::after { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .14), transparent 70%); pointer-events: none; }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin: 20px 0 0; }
.nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.nums dt { font-size: 14px; line-height: 1.5; color: var(--sub); }
.nums dd { margin: 0; font-size: clamp(26px, 2.2vw + 16px, 50px); font-weight: 800; line-height: 1; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nums dd i { font-style: normal; color: var(--gold); margin-left: 2px; }
.scale-trend { display: grid; align-content: center; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.live { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; color: var(--mint); font-weight: 800; }
.live > i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 1.8s ease-out infinite; }
.asof { margin-left: auto; font-weight: 400; color: var(--dim); font-size: 12.5px; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.trend { position: relative; margin: 6px 0 4px; }
.trend svg { display: block; width: 100%; height: 104px; overflow: visible; }
.trend-x { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--dim); }
.trend-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.trend-x span:first-child { transform: none; }
.trend-x span:last-child { transform: translateX(-100%); }
.tdot { position: absolute; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%); cursor: default; }
.tdot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #10172b; transform: translate(-50%, -50%); }
.tdot.now::after { width: 11px; height: 11px; background: #fde68a; box-shadow: 0 0 0 3px rgba(251, 191, 36, .25), 0 0 16px rgba(251, 191, 36, .8); }
.tdot:focus-visible { outline: 2px solid var(--gold); border-radius: 50%; }
.trend-tip { position: absolute; z-index: 3; transform: translate(-50%, -125%); white-space: nowrap; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: #0b1122; border: 1px solid var(--line-2); pointer-events: none; }
.trend-tip b { color: var(--gold); }
.scale-sub { font-size: 14px; color: var(--sub); line-height: 1.65; }
.scale-sub b { color: var(--text); }
@media (max-width: 900px) { .scale-card { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ---------- 절 공통 ---------- */
.sec { position: relative; padding: 100px 0; }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 52px; }
.sec-head.center { text-align: center; justify-items: center; margin-inline: auto; }
.sec h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.sub { font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.75; color: var(--sub); max-width: 40em; text-wrap: pretty; }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.split > .sec-head { margin-bottom: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 760px) { .sec { padding: 72px 0; } .sec-head { margin-bottom: 36px; } .br-d { display: none; } }

/* ---------- 파이프라인 ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); min-width: 0; }
.flow-card.is-open { border-color: rgba(251, 191, 36, .38); background: linear-gradient(180deg, rgba(251, 191, 36, .09), rgba(255, 255, 255, .012)); }
.flow-card > :not(.flow-vis) { margin-inline: 8px; }
.flow-vis { position: relative; height: 140px; border-radius: 15px; overflow: hidden; background: var(--stage); margin-bottom: 8px; }
.vis-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; padding-bottom: 6px; }
.vis-art .spr { position: relative; inset: auto; width: 96px; height: 96px; display: block; }
.vis-game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.vis-game::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 22, 0) 50%, rgba(7, 11, 22, .55)); }
.vis-store { display: flex; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(60% 70% at 50% 50%, rgba(59, 130, 246, .22), transparent 70%), var(--stage); }
.vis-store img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .8); }
.vis-store img:nth-child(2) { width: 68px; height: 68px; border-radius: 17px; }
.vis-money { display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 50%, rgba(251, 191, 36, .2), transparent 70%), var(--stage); }
.money-pill { position: relative; width: 168px; display: block; }
.money-pill img { display: block; width: 100%; height: auto; }
.money-pill .coin-i { position: absolute; left: 7%; top: 18%; width: 22%; }
.money-pill b { position: absolute; right: 13%; top: 50%; transform: translateY(-50%); font-size: 21px; line-height: 1; color: #ffe48a; -webkit-text-stroke: 3px #1a1426; paint-order: stroke fill; }
.flow-no { font-size: 12px; color: var(--dim); margin-top: 2px; }
.flow-card h3 { font-size: 21px; font-weight: 800; line-height: 1.3; }
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.55; color: var(--sub); }
.dots li { position: relative; padding-left: 14px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--blue-2); }
.is-open .dots li::before { background: var(--gold); }
.flow-card .chip { margin-top: auto; align-self: flex-start; }
.flow-card .dots { margin-bottom: 14px; }
@media (min-width: 1025px) {
  .flow-card:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 64px; z-index: 2; width: 10px; height: 10px; border-top: 2px solid rgba(255, 255, 255, .25); border-right: 2px solid rgba(255, 255, 255, .25); transform: rotate(45deg); }
}
@media (max-width: 1024px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ---------- 출시 게임 ---------- */
.games { padding-top: 20px; padding-bottom: 80px; }
.games-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 44px; }
.games-head .sec-head { margin-bottom: 0; }
.games-head .btn .arr { margin-left: 2px; }
.marquee { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 16px; width: max-content; }
.js .mq-track { animation: mq 100s linear infinite; }
.js .mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 90s; }
.mq-row:hover .mq-track { animation-play-state: paused; }
.marquee img { display: block; flex: none; width: 180px; height: 320px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-3); }
@keyframes mq { to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 640px) { .marquee img { width: 132px; height: 235px; border-radius: 14px; } .marquee, .mq-track { gap: 12px; } @keyframes mq { to { transform: translateX(calc(-50% - 6px)); } } }

/* ---------- 픽셀 스프라이트 공통 ---------- */
.spr { position: absolute; inset: 0; display: block; background-repeat: no-repeat; background-size: 100% 100%; image-rendering: pixelated; }
.flip { transform: scaleX(-1); }
.walk4 { background-size: 400% 100%; animation: walk4 .8s steps(4) infinite; }
@keyframes walk4 { to { background-position-x: 133.333%; } }
.hop { animation: hop .7s steps(2) infinite; }
@keyframes hop { 50% { transform: translateY(calc(-2 * var(--px, 2px))); } }
.flip.hop { animation-name: hopflip; }
@keyframes hopflip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(calc(-2 * var(--px, 2px))); } }

/* ---------- gameart-kit ---------- */
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: #d4dbea; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 6px; background: rgba(251, 191, 36, .14); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(40deg); }
.soon-row { margin-top: 8px; }
.window { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #131a2d, #0c1222); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f52; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 16px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; }
.duo figure { position: relative; margin: 0; height: 300px; border-radius: 16px; overflow: hidden; }
.duo img { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: none; }
.duo-a { background: linear-gradient(180deg, #f6f3fb, #e2dcef); }
.duo-a img { width: min(276px, 100%); height: auto; }
.duo-b { background: var(--stage); }
.duo-b img { width: 288px; height: 288px; image-rendering: pixelated; }
.bob { animation: bigbob 1.2s steps(2) infinite; }
@keyframes bigbob { 50% { transform: translate(-50%, -3px); } }
.shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%) no-repeat; background-size: 250% 100%; animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -30% 0; } }
.lab { position: absolute; top: 12px; left: 12px; font-size: 12.5px; font-weight: 800; line-height: 1.4; padding: 4px 10px; border-radius: 8px; background: rgba(7, 11, 22, .74); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.duo-arrow { position: relative; z-index: 2; justify-self: center; width: 36px; height: 36px; margin-inline: -8px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 5px #10172a, 0 0 24px rgba(251, 191, 36, .5); }
.duo-arrow svg, .to svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.set-h { margin: 18px 2px 10px; font-size: 14px; font-weight: 800; color: var(--sub); }
.set-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.set-row figure { margin: 0; display: grid; gap: 6px; }
.set-row figcaption { font-size: 12.5px; color: var(--sub); text-align: center; line-height: 1.4; }
.sq { position: relative; height: 118px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.sq.stage { background: var(--stage); }
.sq.stage .spr { inset: auto; left: 50%; bottom: 6px; width: 96px; height: 96px; transform: translateX(-50%); }
.sq.night { background: radial-gradient(circle at 50% 40%, #3d2e6c, #1a1430 75%); }
.sq.night .kcard { position: relative; width: 84px; --s: 125cqw; }
.sq.pal { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); grid-template-columns: repeat(6, 15px); gap: 3px; align-content: center; justify-content: center; }
.sq.pal i { width: 15px; height: 15px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 64px 0 0; }
.stats > div { padding: 22px 22px 20px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); }
.stats dt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--sub); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats dt { font-size: 28px; } }
@media (max-width: 640px) {
  .duo { grid-template-columns: 1fr; }
  .duo figure { height: 250px; }
  .duo-a img { width: 230px; }
  .duo-b img { width: 192px; height: 192px; }
  .duo-arrow { transform: rotate(90deg); margin: -8px 0; }
  .set-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) { .stats > div { padding: 18px 16px; } .stats dd { font-size: 13.5px; } }

/* ---------- 데모 화면(원본 시안의 게임 화면, 1픽셀 = --px) ---------- */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-bottom: 22px; }
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--sub); font-size: 14.5px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: #0b1020; }
.seg-one { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); font-size: 14.5px; font-weight: 800; cursor: pointer; }
.seg-one:hover { border-color: var(--line-2); }
.ico-pause { position: relative; width: 14px; height: 14px; }
.ico-pause::before, .ico-pause::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 4px; border-radius: 1px; background: currentColor; }
.ico-pause::before { left: 2px; } .ico-pause::after { right: 2px; }
.seg-one[aria-pressed="true"] .ico-pause::before { left: 3px; top: 0; bottom: 0; width: 0; border-radius: 0; background: none; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.seg-one[aria-pressed="true"] .ico-pause::after { display: none; }
.demo-frame { max-width: 1120px; margin: 0 auto; }
.demo-frame.is-tall { max-width: 440px; }
.demo-note { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--dim); }
.screen {
  position: relative; width: 100%; aspect-ratio: 2.2/1; --px: .25cqw; border-radius: 20px; overflow: hidden; container-type: inline-size; isolation: isolate; cursor: pointer;
  background: #5aa83a url(../assets/px/grass.png) 0 0/4% auto; image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.screen::after { content: ""; position: absolute; inset: 0; z-index: 60; pointer-events: none; background: radial-gradient(130% 100% at 45% 40%, transparent 60%, rgba(8, 6, 16, .38)); }
.screen > * { position: absolute; }
.screen.paused, .screen.paused * { animation-play-state: paused !important; }
.tile { width: calc(38.4 * var(--px)); image-rendering: auto; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.22) drop-shadow(0 0 calc(2.8 * var(--px)) rgba(255, 226, 120, .85)); } }
.unit { width: calc(48 * var(--px)); aspect-ratio: 1; }
.shadow { position: absolute; left: 50%; bottom: calc(-2.2 * var(--px)); width: calc(28 * var(--px)); height: calc(6 * var(--px)); transform: translateX(-50%); border-radius: 50%; background: rgba(28, 58, 14, .42); }
.mob { animation: march 8s linear infinite; transform-origin: 50% 96%; opacity: 0; }
@keyframes march {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  72% { transform: translateX(var(--go)); filter: none; opacity: 1; }
  72.6%, 73.6% { transform: translateX(calc(var(--go) + calc(2 * var(--px)))); filter: brightness(5) saturate(0); }
  76% { transform: translateX(calc(var(--go) + calc(3.2 * var(--px)))); filter: none; }
  81% { transform: translateX(calc(var(--go) + calc(3.2 * var(--px)))) scale(1); opacity: 1; }
  86%, 100% { transform: translateX(calc(var(--go) + calc(3.2 * var(--px)))) scale(.15); opacity: 0; }
}
.dmg { font-family: var(--font-px); font-weight: 400; font-size: calc(10.8 * var(--px)); line-height: 1; color: #fff; -webkit-text-stroke: calc(1.36 * var(--px)) #1a1426; paint-order: stroke fill; white-space: nowrap; opacity: 0; animation: dmg 8s linear infinite; }
.dmg.crit { font-size: calc(14.4 * var(--px)); color: #ffd28a; }
.dmg.crit::before { content: "치명타 "; font-size: .55em; color: #ff9a5a; vertical-align: .35em; }
@keyframes dmg {
  0%, 72.4% { opacity: 0; transform: translate(-50%, 0) scale(.4); }
  73.6% { opacity: 1; transform: translate(-50%, calc(-4.8 * var(--px))) scale(1.4); }
  77% { opacity: 1; transform: translate(-50%, calc(-6.4 * var(--px))) scale(1); }
  90% { opacity: 1; transform: translate(-50%, calc(-16 * var(--px))) scale(1); }
  94%, 100% { opacity: 0; transform: translate(-50%, calc(-18.4 * var(--px))) scale(1); }
}
.spark { width: calc(24 * var(--px)); aspect-ratio: 1; border-radius: 50%; opacity: 0; animation: spark 8s linear infinite; background: radial-gradient(circle, #fff 0 14%, rgba(255, 246, 200, .95) 24%, rgba(255, 200, 61, .55) 42%, rgba(255, 200, 61, 0) 64%); }
@keyframes spark { 0%, 72.3% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 72.7% { opacity: 1; transform: translate(-50%, -50%) scale(.7); } 77%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
.poof { width: calc(24 * var(--px)); aspect-ratio: 1; border-radius: 50%; border: calc(2 * var(--px)) solid rgba(255, 255, 255, .9); opacity: 0; animation: poof 8s linear infinite; }
@keyframes poof { 0%, 80.9% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 81% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 88%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.coin { width: calc(9.6 * var(--px)); opacity: 0; animation: coin 8s linear infinite; image-rendering: auto; }
@keyframes coin { 0%, 86.9% { opacity: 0; transform: translate(0, 0) scale(1); } 87% { opacity: 1; transform: translate(0, calc(-2.4 * var(--px))) scale(1.35); } 90% { opacity: 1; transform: translate(0, calc(-8.8 * var(--px))) scale(1.25); } 100% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(.75); } }
.bolt { width: calc(11.2 * var(--px)); height: calc(2.2 * var(--px)); opacity: 0; animation: shot 4s linear infinite; background: linear-gradient(90deg, #c9a06a 0 18%, #7a4a22 18% 76%, #e9edf5 76%); box-shadow: 0 0 0 calc(.56 * var(--px)) #1a1426; }
.orb { width: calc(8 * var(--px)); aspect-ratio: 1; border-radius: 50%; opacity: 0; animation: shot 4s linear infinite; background: radial-gradient(circle at 40% 40%, #fff 0 18%, #d6c8ff 32%, #8c6bff 62%, rgba(140, 107, 255, 0) 72%); filter: drop-shadow(0 0 calc(2.8 * var(--px)) #a68eff); }
@keyframes shot { 0% { opacity: 1; transform: translateX(0); } 12.5% { opacity: 1; transform: translateX(var(--d)); } 12.6%, 100% { opacity: 0; transform: translateX(var(--d)); } }
.hud-text { font-family: var(--font-px); line-height: 1; color: #fff; -webkit-text-stroke: calc(1.04 * var(--px)) #1a1426; paint-order: stroke fill; white-space: nowrap; pointer-events: none; }
.pill { transition: transform .12s; }
.pill.bump { animation: bump .3s ease-out; }
@keyframes bump { 40% { transform: scale(1.08); } }
.tray { border-radius: calc(7.2 * var(--px)); background: linear-gradient(180deg, var(--tray1, #3a2f63), var(--tray2, #231b40)); border: calc(1.4 * var(--px)) solid #1a1426; box-shadow: inset 0 0 0 calc(1.2 * var(--px)) var(--frame, #e8b33a), inset 0 calc(3.2 * var(--px)) 0 rgba(255, 255, 255, .1), 0 calc(3.2 * var(--px)) calc(6.4 * var(--px)) rgba(0, 0, 0, .35); }
.kcard { position: absolute; container-type: inline-size; --s: 125cqw; }
.kcard > img { display: block; width: 100%; height: auto; image-rendering: auto; }
.por { position: absolute; left: 19.6cqw; top: 19.6cqw; width: 61cqw; height: 56.4cqw; overflow: hidden; border-radius: 4cqw; }
.por i { position: absolute; width: var(--s); aspect-ratio: 1; left: calc(30.5cqw - var(--s) / 2); top: calc(var(--row) * var(--s) / -48); background: 0 0/100% 100% no-repeat; image-rendering: pixelated; }
.screen.tall .nm { display: none; }
.cost, .nm { position: absolute; display: flex; justify-content: center; align-items: center; font-family: var(--font-px); line-height: 1; color: #fff; paint-order: stroke fill; white-space: nowrap; }
.cost { left: 44cqw; width: 16cqw; top: 92.6cqw; height: 10cqw; font-size: 10cqw; -webkit-text-stroke: 1.4cqw #1a1426; }
.nm { left: 19cqw; width: 62cqw; top: 78.6cqw; height: 12.4cqw; font-size: 9.5cqw; -webkit-text-stroke: 1.8cqw #1a1426; }

/* ---------- 캐릭터 넘겨 보기 ---------- */
.mv { max-width: 1000px; margin: 0 auto; text-align: center; --box: 288px; }
.mv-stage { position: relative; height: 340px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(46% 18% at 50% 88%, rgba(255, 255, 255, .1), transparent 72%), radial-gradient(70% 80% at 50% 40%, rgba(59, 130, 246, .1), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.mv-track { position: absolute; inset: 0; }
.mv-item { position: absolute; left: 50%; bottom: 26px; width: var(--box); height: var(--box); margin-left: calc(var(--box) / -2); padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s; }
.mv-item .spr { image-rendering: pixelated; }
.mv-item.is-cur { cursor: default; }
.mv-arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(7, 11, 22, .66); color: var(--text); cursor: pointer; transition: background-color .15s; }
.mv-arrow:hover { background: rgba(255, 255, 255, .12); }
.mv-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mv-arrow.prev { left: 16px; } .mv-arrow.next { right: 16px; }
.mv-info h3 { margin-top: 26px; font-size: 26px; font-weight: 800; }
.mv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.mv-desc { max-width: 34em; min-height: 3.5em; margin: 12px auto 0; color: var(--sub); }
.mv-frames { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.mv-frame { position: relative; width: 96px; height: 96px; padding: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--stage); cursor: pointer; overflow: hidden; }
.mv-frame i { position: absolute; inset: 0; background-repeat: no-repeat; image-rendering: pixelated; }
.mv-frame b { position: absolute; left: 7px; top: 5px; font-family: var(--font-px); font-weight: 400; font-size: 12px; color: var(--dim); }
.mv-frame.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, .2); }
.mv-frame.on b { color: var(--gold-2); }
@media (max-width: 640px) {
  .mv { --box: 192px; }
  .mv-stage { height: 250px; }
  .mv-item { bottom: 22px; }
  .mv-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .mv-arrow.prev { left: 8px; } .mv-arrow.next { right: 8px; }
  .mv-frame { width: 64px; height: 64px; border-radius: 12px; }
  .mv-frame b { font-size: 11px; left: 5px; top: 3px; }
}

/* ---------- 변환 결과 ---------- */
.feats { padding-top: 24px; }
.feat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.feat + .feat { margin-top: 110px; }
.feat.rev { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.feat.rev .feat-media { order: 2; }
.feat-media { min-width: 0; display: flex; justify-content: center; }
.feat-txt { display: grid; gap: 14px; align-content: center; }
.feat-txt h3 { font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; line-height: 1.25; }
.feat-txt p:not(.eyebrow) { color: var(--sub); font-size: 16.5px; }
.feat-txt .hint { font-size: 14px; color: var(--dim); }
@media (max-width: 900px) { .feat, .feat.rev { grid-template-columns: 1fr; gap: 28px; } .feat.rev .feat-media { order: 0; } .feat + .feat { margin-top: 80px; } }
.ba { position: relative; width: 100%; aspect-ratio: 222/58; container-type: inline-size; user-select: none; -webkit-user-select: none; touch-action: pan-y; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.ba.fit { width: calc(var(--dw) * var(--k) * 1px); aspect-ratio: auto; height: calc(58 * var(--k) * 1px); }
.ba .layer { position: absolute; inset: 0; }
.ba .layer img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; max-width: none; }
.ba.fit .layer img { width: calc(222 * var(--k) * 1px); }
.ba .smooth { background: linear-gradient(180deg, #f3f0f8, #e4dff0); }
.ba .pixel { clip-path: inset(0 0 0 var(--cut, 50%)); background: var(--stage); }
.ba .pixel img { image-rendering: pixelated; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; transform: translateX(-1.5px); background: var(--gold); box-shadow: 0 0 16px rgba(251, 191, 36, .6); pointer-events: none; }
.ba .handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.ba .handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba .lab.r { left: auto; right: 12px; }
.pose { position: relative; width: 100%; max-width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #f1eef7, #e4dff0); }
.pose figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.pose img { width: 100%; max-width: 240px; height: auto; }
.pose figcaption { font-size: 13px; font-weight: 800; color: #4a4560; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); }

/* 가짜 도트와 진짜 도트: 두 그림을 같은 상자에 겹치고 진짜 도트 층을 선 오른쪽만 보인다. 상자 크기는 lab.js 가 칸 수 × 정수배로 */
.dots { display: grid; gap: 14px; justify-items: center; width: 100%; }
.ba2 { position: relative; width: 100%; aspect-ratio: 150 / 85; max-width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; touch-action: pan-y; background: #0b1122; }
.ba2.fit { width: calc(var(--dw) * var(--k) * 1px); height: calc(var(--dh) * var(--k) * 1px); aspect-ratio: auto; }
.ba2 .layer { position: absolute; inset: 0; }
.ba2 .layer img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.ba2 .real { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba2 .real img { image-rendering: pixelated; }
.ba2 .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; transform: translateX(-1.5px); background: var(--gold); box-shadow: 0 0 16px rgba(251, 191, 36, .6); pointer-events: none; }
.ba2 .handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.ba2 .handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ba2 input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba2 .lab { top: 10px; }
.ba2 .lab.r { left: auto; right: 10px; }
.dots-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; width: 100%; max-width: var(--dots-w, 100%); }
.dots-num { display: flex; gap: 22px; margin: 0; }
.dots-num div { display: grid; gap: 2px; }
.dots-num dt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.dots-num div:last-child dt { color: var(--gold-2); }
.dots-num dd { margin: 0; font-size: 13px; color: var(--sub); }

/* 무기 3D 회전: 흰 바탕판(남색 바탕에서는 검은 자루가 가늘게 묻힌다) */
.turn { display: grid; justify-items: center; gap: 14px; width: 100%; }
.turn-plate { position: relative; width: min(100%, 320px); aspect-ratio: 1; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .5) inset; overflow: hidden; cursor: grab; touch-action: pan-y; }
.turn-plate:active { cursor: grabbing; }
.turn-sheet { position: absolute; inset: 0; background: 0 0 / 800% 300% no-repeat; }
.turn-sheet.on { background-image: url(../assets/extra/scythe_turn.webp); }   /* 가까워지면 lab.js 가 on 을 붙여 그때 받는다(스크립트가 없을 때는 index.html 의 noscript) */
.turn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flowline { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.flowline li { font-size: 13.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #d6dcea; }
.flowline li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px -6px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.flowline li:last-child { color: var(--gold-2); border-color: rgba(251, 191, 36, .35); }

/* 일러스트 한 장으로 움직이는 캐릭터(리그). 캔버스 크기는 lab.js 가 --rk(도트 한 칸의 CSS px, 기기 화소 정수배)와 열 수 --rc 로 정한다 */
.rig .feat + .rig-wide, .rig-wide + .rig-wide { margin-top: 110px; }
.rig-card { position: relative; width: 100%; min-width: 0; display: grid; gap: 20px; justify-items: center; padding: 26px 22px 22px; border-radius: 24px; background: var(--stage); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.rig-row { display: grid; grid-template-columns: repeat(var(--rc, 2), auto); justify-content: center; gap: 18px 12px; }
.rig-row figure { margin: 0; display: grid; justify-items: center; align-content: start; gap: 10px; }
.rig-cv { display: block; width: calc(var(--rw, 100) * var(--rk, 1) * 1px); height: calc(var(--rh, 100) * var(--rk, 1) * 1px); image-rendering: crisp-edges; image-rendering: pixelated; }
.rig-row figcaption { display: grid; justify-items: center; gap: 1px; font-size: 13.5px; font-weight: 800; line-height: 1.35; color: var(--sub); text-align: center; }
.rig-row figcaption small { font-size: 12px; font-weight: 600; color: var(--dim); }
.rig-row .best figcaption { color: var(--gold-2); }
.rig-tag { position: absolute; left: 16px; top: 14px; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--sub); }
.rig-faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 520px; }
.rig-faces figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.rig-faces img { display: block; width: 100%; height: auto; aspect-ratio: 194 / 172; border-radius: 12px; background: #12141c; border: 1px solid var(--line); }
.rig-faces figcaption { font-size: 12.5px; font-weight: 800; color: var(--sub); white-space: nowrap; }
/* 설정화 → SD → 픽셀(12/4): 그림 둘은 같은 높이, 픽셀 칸은 lab.js 가 정수배로. 동작 여섯은 크기가 달라 줄바꿈하며 칸 아래를 맞춘다 */
.rig-row.rig-one { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.rig-one img { display: block; height: 210px; width: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.rig-arrow { align-self: center; flex: none; width: 12px; height: 12px; margin: 0 6px 34px 0; border-top: 2px solid var(--dim); border-right: 2px solid var(--dim); transform: rotate(45deg); }
.rig-row.rig-mv { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 18px 14px; }
.rig-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.rig-bar .seg button:disabled { opacity: .35; cursor: not-allowed; }
/* 영상 모델 방식(12/4 밤): HD 와 동물 칸은 매끈하게 줄인다. 도트 칸만 정수배 픽셀 그대로 */
.rig-cv.smooth { image-rendering: auto; }
.rig-wide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.rig-wide-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px 56px; align-items: end; }
.rig-wide-head h3 { margin: 12px 0 0; font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; line-height: 1.25; }
.rig-wide-head > p { margin: 0; color: var(--sub); font-size: 16.5px; }
.rig-flow { justify-content: center; }
.rig-note { margin: 0; color: var(--dim); font-size: 14.5px; text-align: center; text-wrap: pretty; }
.rig-foot { margin-top: 72px; display: grid; gap: 10px; padding: 22px 24px; border-radius: 20px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .025); }
.rig-foot p { margin: 0; color: var(--sub); font-size: 15px; }
.rig-foot p.dim { color: var(--dim); font-size: 14px; }
.rig-foot .chip { margin-right: 10px; vertical-align: 1px; }
@media (max-width: 900px) { .rig-wide-head { grid-template-columns: 1fr; } .rig .feat + .rig-wide, .rig-wide + .rig-wide { margin-top: 80px; } }
@media (max-width: 640px) { .rig-card { padding: 16px 12px; border-radius: 18px; } .rig-tag { position: static; justify-self: start; } .rig-faces { gap: 5px; } .rig-faces img { border-radius: 8px; } .rig-faces figcaption { font-size: 11.5px; } .rig-note { text-align: left; } .rig-row.rig-one { gap: 6px; } .rig-one img { height: 130px; border-radius: 8px; } .rig-arrow { width: 8px; height: 8px; margin: 0 3px 34px 0; } .rig-row.rig-mv { gap: 14px 10px; } .rig-bar .seg button { padding: 0 11px; } }

/* 다음 캐릭터 실루엣 */
.upcoming { margin-top: 64px; }
.upcoming-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.upcoming-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sil { position: relative; margin: 0; height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 18px 12px 16px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(55% 50% at 50% 55%, rgba(251, 191, 36, .13), transparent 72%), linear-gradient(180deg, #19213d, #0d1326); }
.sil img { flex: 1 1 auto; min-height: 0; width: auto; max-width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(251, 191, 36, .85)) drop-shadow(0 0 18px rgba(251, 191, 36, .22)); }
.sil figcaption { display: grid; justify-items: center; gap: 2px; margin-top: 10px; text-align: center; }
.sil b { font-size: 12px; color: var(--gold-2); letter-spacing: .2em; }
.sil span { font-size: 13.5px; line-height: 1.4; color: var(--sub); }
@media (max-width: 640px) { .upcoming-list { gap: 8px; } .sil { height: 220px; padding: 12px 6px 12px; border-radius: 16px; } .sil span { font-size: 12.5px; } }

/* ---------- UI 키트 ---------- */
.kitboard { display: grid; gap: 22px; padding: 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); transition: background .3s; }
.kitboard.night { background: linear-gradient(180deg, rgba(80, 110, 200, .14), rgba(255, 255, 255, .012)); }
.kitbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.kitbar p { font-size: 15px; color: var(--sub); }
.kitbar p b { color: var(--text); }
.kitcards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: end; }
.kitcards .kcard { position: relative; --s: 110cqw; }
.kitcards .cap { display: block; margin-top: 4px; text-align: center; font-size: 12.5px; color: var(--sub); }
.kitgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kitgrid figure { margin: 0; display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); }
.kitgrid figure.wide { grid-column: 1 / -1; }
.kitgrid .kp { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; min-height: 96px; }
.kitgrid figcaption { text-align: center; font-size: 13px; color: var(--sub); }
.kitgrid img { height: auto; }
.w-btn { width: 64px; } .w-stars { width: 220px; } .w-trait { width: min(30%, 240px); }
.hpbar { position: relative; width: min(100%, 290px); }
.hpbar img { display: block; width: 100%; }
.hpbar .fill { position: absolute; left: 3.9%; top: 21.4%; width: 66%; height: 57%; }
@media (max-width: 760px) { .kitcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kitgrid { grid-template-columns: 1fr; } .kitboard { padding: 18px; } .w-trait { width: min(100%, 240px); } }

/* ---------- 사용법(터미널) ---------- */
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.steps li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 4px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: 13.5px; font-weight: 800; text-align: center; line-height: 1.3; }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(251, 191, 36, .14); color: var(--gold-2); font-size: 13px; }
.skills-h { font-size: 13px; color: var(--dim); margin-top: 6px; }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skills li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #c5cde0; }
@media (max-width: 420px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.term { border-radius: 20px; overflow: hidden; background: #0a0f1d; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); min-width: 0; }
.term-body { display: grid; gap: 14px; padding: 22px 22px 26px; font-size: 15px; line-height: 1.7; }
.tl { margin: 0; }
p.tl { display: flex; gap: 10px; }
.tl .pr { flex: none; width: 12px; font-family: var(--mono); color: var(--blue-2); }
.tl .pr.dot { color: var(--gold); font-size: 11px; line-height: 2.2; }
.tl .pr.ok-c { color: var(--mint); }
.tl.me { color: var(--text); font-weight: 800; }
.tl.ai { color: #c9d2e6; }
.tplan { list-style: none; padding: 0 0 0 22px; display: grid; gap: 4px; counter-reset: st; }
.tplan li { counter-increment: st; display: grid; grid-template-columns: 20px 92px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.6; }
.tplan li::before { content: counter(st); font-family: var(--mono); color: var(--dim); }
.tplan b { color: var(--text); font-weight: 800; }
.tplan span { color: var(--sub); }
.ask { margin-left: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1px dashed rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .07); font-size: 14px; }
.ask .ok { padding: 6px 14px; border-radius: 8px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 13.5px; }
.attach { margin-left: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.cellm { position: relative; display: block; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--stage); --px: 1px; }
.cursor .caret { display: inline-block; width: 9px; height: 18px; margin-top: 4px; background: var(--text); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term.anim .tl { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.js .term.anim.play .tl { opacity: 1; transform: none; }
@media (max-width: 520px) { .term-body { padding: 18px 16px 20px; font-size: 14.5px; } .tplan { padding-left: 0; } .tplan li { grid-template-columns: 16px 84px minmax(0, 1fr); } .ask, .attach { margin-left: 0; } }
.agents { margin-top: 64px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.agents p { color: var(--sub); }
.agent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.agent-list li { font-family: var(--mono); font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: #d7deee; }

/* ---------- 자동 QA ---------- */
.defects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.defect { display: grid; gap: 12px; align-content: start; padding: 16px 16px 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); }
.defect.wide { grid-column: 1 / -1; }
.defect h3 { font-size: 19px; font-weight: 800; margin: 6px 6px 0; line-height: 1.4; }
.defect p { font-size: 15px; color: var(--sub); margin: 0 6px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.shot { position: relative; display: grid; place-items: center; padding: 30px 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .06); background: repeating-conic-gradient(#1a2032 0 25%, #141a2a 0 50%) 0 0/16px 16px; }
.shot .imgbox { position: relative; width: 192px; max-width: 100%; }
.pair.col .shot .imgbox { width: 384px; }
.shot img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.ring { position: absolute; aspect-ratio: 1; border: 3px solid var(--red); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(248, 113, 113, .22); }
.tag { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: #fff; background: #e5484d; }
.tag.good { background: #1f9e6e; }
.to { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(251, 191, 36, .14); color: var(--gold); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.checks > div { padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.checks h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.checks ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; color: var(--sub); }
@media (max-width: 860px) { .defects, .checks { grid-template-columns: 1fr; } .pair.col { grid-template-columns: 1fr; justify-items: center; } .pair.col .to { transform: rotate(90deg); } .pair.col .shot { width: 100%; } }
@media (max-width: 640px) { .shot .imgbox { width: 144px; } .pair.col .shot .imgbox { width: 256px; } }
@media (max-width: 380px) { .shot .imgbox { width: 96px; } .pair.col .shot .imgbox { width: 192px; } }

/* ---------- 자라 온 길 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(251, 191, 36, .65)); }
.timeline li { position: relative; display: grid; gap: 6px; align-content: start; padding: 34px 10px 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #1d2438; border: 2px solid rgba(255, 255, 255, .2); }
.timeline li.now::before { background: var(--gold); border-color: #fde68a; box-shadow: 0 0 0 6px rgba(251, 191, 36, .16); }
.timeline time { font-family: var(--font-px); font-size: 12px; color: var(--gold-2); }
.timeline b { font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.timeline span { font-size: 14px; line-height: 1.6; color: var(--sub); }
.fields { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.fields p { font-size: 13.5px; font-weight: 800; color: var(--dim); }
.fields ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fields li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #d6dcea; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(251, 191, 36, .65)); }
  .timeline li { padding: 0 0 0 32px; }
}

/* ---------- 로드맵 ---------- */
.rmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rcol { padding: 22px 22px 8px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); }
.rcol.doing { border-color: rgba(251, 191, 36, .38); background: linear-gradient(180deg, rgba(251, 191, 36, .08), rgba(255, 255, 255, .012)); }
.rcol h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.st { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.done .st { background: var(--mint); }
.doing .st { background: var(--gold); animation: live 1.8s ease-out infinite; }
.rcol.plan .st { background: transparent; border: 2px solid var(--sub); }
.rcol ul { list-style: none; margin: 0; padding: 0; }
.rcol li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--sub); }
.rcol li b { font-size: 15.5px; font-weight: 800; color: var(--text); }
@media (max-width: 900px) { .rmap { grid-template-columns: 1fr; } }

/* ---------- 모델 연결 · 시작하기 ---------- */
.models { padding-bottom: 60px; }
.mlist { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); min-width: 0; }
.mrow { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 6px 20px; padding: 18px 22px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow b { font-size: 17px; font-weight: 800; line-height: 1.4; }
.mrow span { font-size: 14.5px; line-height: 1.6; color: var(--sub); }
.mrow code { grid-column: 2; justify-self: start; font-family: var(--mono); font-size: 12.5px; color: #9fe8c9; padding: 3px 8px; border-radius: 6px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .18); overflow-wrap: anywhere; }
@media (max-width: 560px) { .mrow { grid-template-columns: 1fr; } .mrow code { grid-column: 1; } }
.start { padding-top: 60px; }
.soon-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 14px; font-weight: 800; color: var(--gold-2); padding: 8px 14px; border-radius: 999px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); }
.soon-badge .st { background: var(--gold); animation: live 1.8s ease-out infinite; }
.tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); }
.tabs [role=tab] { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--sub); font-size: 14px; font-weight: 800; cursor: pointer; }
.tabs [role=tab][aria-selected="true"] { background: rgba(255, 255, 255, .07); color: var(--text); }
.tabs .copy { align-self: center; margin: 0 6px 6px auto; font-size: 12.5px; color: var(--dim); padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line-2); }
.pane { display: grid; gap: 10px; padding: 22px; font-family: var(--mono); font-size: 14px; line-height: 1.7; min-height: 190px; align-content: start; }
.pane .c { color: #7f8bb0; font-family: var(--font); font-size: 14px; }
.lock { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2); color: #cfd6e6; font-family: var(--font); font-size: 14px; }
.lk { position: relative; flex: none; width: 12px; height: 10px; margin-top: 5px; border-radius: 2px; background: var(--gold); }
.lk::before { content: ""; position: absolute; left: 2px; top: -7px; width: 4px; height: 6px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 5px 5px 0 0; }
@media (max-width: 420px) { .tabs .copy { display: none; } .tabs [role=tab] { padding: 0 12px; } }

/* ---------- 서비스 ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 14px 24px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); min-width: 0; }
.tier-head { margin-inline: -10px; }
.tier.hot { border-color: rgba(251, 191, 36, .42); background: linear-gradient(180deg, rgba(251, 191, 36, .09), rgba(255, 255, 255, .012)); }
.tier-head { height: 192px; display: grid; place-items: end center; padding-bottom: 14px; border-radius: 17px; margin-bottom: 8px; background: radial-gradient(50% 55% at 50% 58%, rgba(251, 191, 36, .2), transparent 72%), var(--stage); overflow: hidden; }
.tier-art { display: block; image-rendering: pixelated; width: auto; height: auto; max-width: 100%; }
.tier h3 { font-size: 21px; font-weight: 800; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tier-d { font-size: 14.5px; color: var(--sub); }
.checks-li { list-style: none; margin: 4px 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14.5px; color: #d0d7e6; }
.checks-li li { position: relative; padding-left: 26px; line-height: 1.55; }
.checks-li li::before { content: ""; position: absolute; left: 3px; top: .32em; width: 6px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(40deg); }
.tier .btn { margin-top: auto; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 96px; margin-bottom: 0; justify-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.faq-list details[open] { background: rgba(255, 255, 255, .05); border-color: var(--line-2); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 800; font-size: 16px; line-height: 1.45; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.faq-list details p { padding: 0 20px 18px; color: var(--sub); font-size: 15px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } .faq-grid .sec-head { position: static; } }

/* ---------- 맺음 띠 ---------- */
.final-sec { padding-top: 40px; }
.final { position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 120% at 0% 0%, rgba(59, 130, 246, .24), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(251, 191, 36, .18), transparent 60%), linear-gradient(180deg, #121a30, #0c1222); }
.final-in { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 64px 28px 40px; }
.final h2 { font-size: clamp(30px, 4.4vw, 54px); }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
/* 첫 화면 풍경과 같은 색의 풀밭 */
.parade { position: relative; height: 136px; container-type: inline-size; overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 11, 22, 0) 0, rgba(7, 11, 22, 0) calc(100% - 46px), #56966c calc(100% - 46px), #56966c calc(100% - 42px), #3a7058 calc(100% - 42px), #3a7058 calc(100% - 38px), #22484a calc(100% - 38px), #0f1d30 100%); }
.parade-track { position: absolute; left: 0; bottom: 36px; display: flex; animation: parade 34s linear infinite; }
.parade-track > * { margin-right: 14px; }
.parade-track .gap { flex: none; width: max(40cqw, 320px); height: 1px; }
@keyframes parade { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.cell2 { position: relative; width: 96px; height: 96px; --px: 2px; flex: none; }
@media (max-width: 640px) { .final-in { padding: 48px 18px 32px; } .final-cta { width: 100%; flex-direction: column; } .final-cta .btn { width: 100%; } }

/* ---------- 구석 단추 ---------- */
.fab { position: fixed; z-index: 90; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--gold); color: var(--gold-ink); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s, background-color .15s; }
.fab.show { transform: none; opacity: 1; pointer-events: auto; }
.fab:hover { background: var(--gold-2); }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 420px) { .fab { min-height: 48px; padding: 0 16px 0 14px; font-size: 14.5px; } }

/* ---------- 바닥줄 ---------- */
.foot { margin-top: 40px; padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #060912; font-size: 14px; color: var(--sub); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand p { max-width: 28em; }
.dim { color: var(--dim); }
.foot-col { display: grid; gap: 2px; align-content: start; }
.foot-col b { color: var(--text); font-size: 14px; margin-bottom: 6px; }
.foot-col { gap: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: grid; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } .foot-col a { min-height: 44px; } }

/* ---------- 나타나기 ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .term.anim .tl { opacity: 1; transform: none; }
  .mob { opacity: 1; transform: translateX(var(--still)); }
  .mq-row { overflow-x: auto; }
  .hero-walk .trk { left: auto; right: 6%; }
}
