/* 공식 플랫폼의 서비스와 개발 중인 게임을 소개한다. 검정 바탕과 유리 조형물을 유지하고,
 * 실제 화면·실행 경로·사용 조건을 한눈에 비교할 수 있게 배치한다. */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --black: #000000;
  --stage: #08080a;
  --paper: #f7f7f8;
  --ink-on-dark: #ececef;
  --ink-on-light: #101012;
  --muted-dark: #8b8b93;
  --muted-light: #6c6c74;
  /* 캡션·안내·저작권. 검정 위 4.94:1, 무대색 위 4.71:1 — 본문 기준(4.5) 통과 */
  --muted-dim: #7a7a83;
  --line-dark: #202026;
  --line-light: #e2e2e6;
  --white: #ffffff;
  --body-dark: #b5b5bf;
  --link-dark: #8ab4f8;
  --line-hover: #51515e;
  --glass-blue: rgba(72, 92, 255, 0.16);
  --glass-violet: rgba(120, 60, 240, 0.08);
  --phone-shell: linear-gradient(160deg, #34343c, #131317 42%, #26262d);
  --phone-screen: #0b0e11;
  --coin-glow: rgba(240, 185, 11, 0.11);
  --krx-glow: rgba(49, 130, 246, 0.11);
  --saju-glow: rgba(247, 108, 130, 0.10);
  --ai-glow: rgba(78, 156, 245, 0.11);
  --sudoku-glow: rgba(79, 158, 119, 0.10);

  --beatwave: #a9f96a;
  --shooter: #72d6ed;
  --beatwave-glow: rgba(169, 249, 106, 0.10);
  --shooter-glow: rgba(114, 214, 237, 0.11);

  --coin: #f0b90b;
  --saju: #f76c82;
  --sudoku: #4f9e77;
  --krx: #3182f6;
  --ai: #4e9cf5;

  --card-surface: #101014;
  --sudoku-surface: #182a4b;
  --coin-surface: #24200f;
  --krx-surface: #0e223f;
  --ai-surface: #152038;
  --image-outline: rgba(255, 255, 255, 0.10);
  --art-shadow: rgba(0, 0, 0, 0.55);
  --image-shade: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.96) 100%);
  --label-shade: rgba(0, 0, 0, 0.78);
  --studio-subtle: #c0c0cc;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;


  /* 메인·상세 첫 화면에서 함께 쓰는 글자 크기. */
  --text-caption: 13px;
  --text-small: 14px;
  --text-ui: 15px;
  --text-body: 16px;
  --text-lead: 18px;
  --card-title-small: 20px;
  --card-title: 21px;
  --card-title-wide: 24px;
  --hero-title: clamp(2.15rem, 8.8vw, 3.6rem);
  --hero-title-wide: clamp(3rem, 5.2vw, 4.6rem);
  --catalog-title: clamp(1.75rem, 3.6vw, 2.7rem);
  --app-title: clamp(2rem, 4.4vw, 3.8rem);

  /* 화면 폭에 따라 자라는 디스플레이 크기 */
  --d1: clamp(2.75rem, 8.2vw, 6.5rem);
  --d2: clamp(2rem, 5.4vw, 4rem);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink-on-dark);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/*
 * height: auto 를 빼면 안 된다.
 *
 * img 에 width/height 속성이 붙어 있으면(레이아웃 흔들림을 막으려고 붙였다)
 * max-width 로 가로만 줄어들고 세로는 속성값 2532px 그대로 남는다. 폰이
 * 세로로 10배 늘어난 채 렌더된다.
 */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---------- 본문으로 건너뛰기 ---------- */

/* 키보드로 들어온 사람에게만 보인다. 첫 Tab 에 나타나고, 누르면 본문으로 */
.skip {
  position: absolute;
  top: 10px;
  left: -999px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-on-light);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus-visible { left: 12px; }

/* ---------- 상단 바 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(20px, env(safe-area-inset-left));
  height: 48px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--text-caption);
  letter-spacing: -0.01em;
}

.nav a { text-decoration: none; color: var(--muted-dark); transition: color 150ms; }

/* 글자는 13px 이지만 누르는 영역은 40px 이상 — 폰에서 첫 시도에 눌리게 */
.nav ul a { display: inline-block; padding: 12px 6px; margin: 0 -6px; }
.nav a:hover, .nav a:focus-visible { color: var(--ink-on-dark); }

/*
 * 로고.
 *
 * 원본 워드마크가 검정이라 이 검은 페이지에서는 글자가 사라진다. 글자만 흰색으로
 * 바꾼 판을 따로 떠서(img/logo.png) 화면에 쓰고, 원본 색 판(img/logo-dark.png)은
 * 흰 바탕에 얹히는 공유 미리보기용으로 남겼다. 기호의 파랑·보라 그라디언트는
 * 두 판 모두 그대로다.
 */
.nav .mark {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}

.nav .mark img { height: 19px; width: auto; }

.nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 520px) {
  .nav ul { gap: 12px; }
  .nav { font-size: 12.5px; }
  .nav .mark img { height: 15px; }
}

/* ---------- 공통 무대 ---------- */

.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.inner { width: 100%; max-width: 980px; margin: 0 auto; position: relative; }

/*
 * 상단 바가 sticky 라, 앵커로 뛰면 제목이 바 밑에 깔린다.
 * 무대마다 바 높이만큼 여유를 준다.
 */
.stage, .apps { scroll-margin-top: 48px; }

.eyebrow {
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: var(--d1);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: var(--d2);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.032em;
  text-wrap: balance;
}


/* ---------- 로고 등장 ---------- */

/*
 * 덮개는 boot-on 이 붙었을 때만 존재한다. 자바스크립트가 막힌 브라우저에는
 * 클래스가 안 붙으므로 아래 규칙이 하나도 걸리지 않고, 덮개는 화면에 없다.
 */
.boot { display: none; }

html.boot-on .boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  animation: boot-out 0.62s cubic-bezier(0.5, 0, 0.75, 0) 1.62s forwards;
}

/* 연출이 도는 동안은 페이지가 스크롤되지 않게 잡아 둔다 */
html.boot-on body { overflow: hidden; }
html.boot-done body { overflow: visible; }

.boot-stage {
  position: relative;
  width: min(320px, 62vw);
  aspect-ratio: 501 / 78;
}

/* 뒤에서 번지는 빛 — 마크가 닦이기 직전에 가장 밝다 */
.boot-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(72, 92, 255, 0.5), rgba(120, 60, 240, 0.18) 45%, transparent 72%);
  filter: blur(12px);
  opacity: 0;
  animation: boot-glow 1.5s ease-out 0.05s forwards;
}

/* 한 번 퍼지고 사라지는 링 */
.boot-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%) scale(0.3);
  border: 1.5px solid rgba(120, 130, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: boot-ring 1.15s cubic-bezier(0.2, 0.7, 0.3, 1) 0.42s forwards;
}

.boot-ring-2 { animation-delay: 0.6s; border-color: rgba(150, 110, 255, 0.4); }

/*
 * 마크는 왼쪽부터 닦여 나온다.
 *
 * clip-path 로 잘라 두고 오른쪽 여백을 0 으로 줄인다. 투명도만 올리면
 * 그냥 켜지는 느낌인데, 닦이면 글자가 하나씩 드러나는 순서가 생긴다.
 */
.boot-logo {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
  transform: scale(0.94);
  animation:
    boot-wipe 0.82s cubic-bezier(0.22, 0.9, 0.24, 1) 0.22s forwards,
    boot-pop 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

.boot-logo img { width: 100%; height: auto; }

/*
 * 광택.
 *
 * 로고 그림을 마스크로 써서 글자 안쪽에서만 빛이 지나가게 한다. 마스크가
 * 없으면 사각형 띠가 배경 위를 지나가 촌스럽다.
 */
.boot-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url('img/logo.png') center / contain no-repeat;
  mask: url('img/logo.png') center / contain no-repeat;
  opacity: 0;
  animation: boot-shine 0.9s ease-in-out 0.72s forwards;
}

@keyframes boot-wipe {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes boot-pop {
  to { transform: scale(1); }
}

@keyframes boot-glow {
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes boot-ring {
  10% { opacity: 0.9; }
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}

@keyframes boot-shine {
  from { opacity: 1; background-position: 170% 0; }
  to { opacity: 1; background-position: -70% 0; }
}

@keyframes boot-out {
  to { opacity: 0; transform: scale(1.06); visibility: hidden; }
}

/* 움직임을 줄여 달라고 했으면 덮개 자체를 만들지 않는다(head 스크립트) */
@media (prefers-reduced-motion: reduce) {
  html.boot-on .boot { display: none; }
}

/* ---------- 첫 화면 ---------- */


.hero { background: var(--black); min-height: auto; padding: 64px 24px 56px; }

/*
 * 빛.
 *
 * 사진 대신 광막 한 장을 그린다. 세 겹이다 — 비스듬히 지나가는 얇은 시트,
 * 그 뒤에서 넓게 퍼지는 차가운 번짐, 그리고 위에 아주 옅은 알갱이. 알갱이가
 * 없으면 그라디언트가 매끈해서 화면이 아니라 렌더처럼 보인다.
 *
 * 시트는 아주 천천히 흔들린다. 눈에 띄게 움직이면 배경이 아니라 애니메이션이
 * 된다. 움직임을 줄인 설정에서는 멈춘다.
 */
.hero .light {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero .sheet {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 150vmax;
  height: 34vmax;
  transform: translate(-50%, -50%) rotate(-24deg);
  background: linear-gradient(90deg, transparent 35%, var(--glass-violet) 65%, transparent 90%);
  filter: blur(26px);
  animation: sheet-drift 22s ease-in-out infinite alternate;
}

.hero .bloom {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 78vmax;
  height: 78vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glass-blue), transparent 70%);
  filter: blur(8px);
}

.hero .grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes sheet-drift {
  from { transform: translate(-52%, -54%) rotate(-26deg); }
  to   { transform: translate(-48%, -46%) rotate(-22deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .sheet { animation: none; }
}

/* 첫 화면: 작은 화면에서도 앱을 고르는 버튼을 먼저 보여준다. */
.hero .inner { display: grid; gap: 24px; align-items: center; justify-items: center; max-width: 1120px; }
.hero-text { max-width: 580px; min-width: 0; }
.hero .eyebrow { font-size: var(--text-caption); letter-spacing: .08em; margin-bottom: 20px; }
.hero h1 { font-size: var(--hero-title); line-height: 1.18; letter-spacing: -.045em; }
.hero .sub { margin: 22px auto 0; max-width: 36ch; font-size: var(--text-body); line-height: 1.7; color: var(--body-dark); text-wrap: pretty; }
.hero-actions { margin-top: 28px; }
.hero-buttons { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; }
.hero .cta { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--ink-on-dark); color: var(--ink-on-light); font-size: var(--text-ui); font-weight: 700; text-decoration: none; transition: transform 150ms; }
.hero .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: var(--text-small); text-decoration: none; }
.hero .text-link:hover, .hero .text-link:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.platform-note { margin: 16px 0 0; font-size: var(--text-caption); color: var(--muted-dark); }
.sculpt { position: relative; width: min(270px, 72vw); aspect-ratio: 1; pointer-events: none; }
.sculpt img { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; will-change: transform; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 1px; height: 20px; background: linear-gradient(var(--muted-dim), transparent); }
@media (min-width: 900px) {
  .hero { padding-block: 88px 100px; min-height: 680px; }
  .hero .inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; text-align: left; justify-items: stretch; }
  .hero h1 { font-size: var(--hero-title-wide); }
  .hero .sub { font-size: var(--text-lead); margin-inline: 0; }
  .hero-buttons { justify-content: flex-start; }
  .hero .bloom { left: 78%; top: 50%; width: 60vmax; height: 60vmax; }
  .sculpt { width: 100%; }
}

/* 실제 앱 화면을 곁들인 목록. 여섯 앱을 넓을 때 두 열, 폰에서는 한 줄씩. */
.apps { background: var(--black); padding: 72px 24px 96px; border-top: 1px solid var(--line-dark); }
.apps .inner { max-width: 1120px; }
.apps-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.apps-head .eyebrow { margin-bottom: 12px; font-size: var(--text-caption); letter-spacing: .06em; }
.apps h2 { font-size: var(--catalog-title); line-height: 1.25; }
.section-note { margin: 0; font-size: var(--text-ui); color: var(--muted-dark); }
.grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.grid > li { min-width: 0; }
.tile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 31%; align-items: center; gap: 12px; min-height: 264px; height: 100%; padding: 24px 0 24px 22px; border: 1px solid var(--line-dark); border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--stage); color: inherit; text-decoration: none; transition: transform 150ms, border-color 150ms; }
.tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 80% at 100% 80%, var(--glow, transparent), transparent); pointer-events: none; }
.tile-text { position: relative; min-width: 0; z-index: 2; }
.tile-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: var(--text-caption); }
.tile-category { color: var(--body-dark); }
.tile-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--body-dark); }
.tile-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--tint); }
.tile h3 { margin: 14px 0 0; font-size: var(--card-title); line-height: 1.28; letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
.tile p { margin: 12px 0 0; font-size: var(--text-ui); line-height: 1.6; color: var(--body-dark); text-wrap: pretty; }
.tile-meta { display: block; margin-top: 14px; font-size: var(--text-caption); color: var(--muted-dark); }
.tile-more { display: inline-block; margin-top: 20px; font-size: var(--text-small); font-weight: 600; }
.tile-more::after { content: ' ↗'; display: inline-block; margin-left: 8px; transition: transform 150ms; }
.tile-phone { position: relative; align-self: end; width: 132%; height: 204px; padding: 5px 5px 0; margin-bottom: -24px; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--phone-shell); }
.tile-phone img { width: 100%; border-radius: 17px 17px 0 0; background: var(--phone-screen); transform: translateY(var(--py, 0px)); }
.tile:focus-visible { outline: 2px solid var(--ink-on-dark); outline-offset: -5px; border-color: var(--line-hover); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: translateY(-3px); border-color: var(--line-hover); }
  .tile:hover .tile-more::after { transform: translate(2px, -2px); }
  .hero .cta:hover { transform: translateY(-2px); }
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 320px; padding: 30px 0 30px 28px; }
  .tile-phone { height: 240px; margin-bottom: -30px; }
}
@media (min-width: 1000px) {
  .apps { padding-block: 88px 112px; }
  .grid { gap: 20px; margin-top: 40px; }
  .tile { grid-template-columns: minmax(0, 1fr) 35%; padding: 32px 0 32px 32px; gap: 24px; min-height: 344px; }
  .tile h3 { font-size: var(--card-title-wide); }
  .tile-phone { align-self: end; width: 110%; height: 260px; margin: 0 0 -32px; border-radius: 28px 28px 0 0; padding: 6px 6px 0; }
  .tile-phone img { border-radius: 22px 22px 0 0; }
  .tile-game .tile-phone { height: 320px; }
}
@media (max-width: 359px) {
  .hero { padding-top: 48px; }
  .hero-buttons { gap: 8px 16px; }
  .hero .cta { padding-inline: 17px; gap: 12px; }
  .tile { padding-left: 18px; grid-template-columns: minmax(0, 1fr) 27%; }
  .tile h3 { font-size: var(--card-title-small); }
}

/* ---------- 상세 페이지 ---------- */

/*
 * 상세 첫 화면은 설명과 실행 버튼을 먼저 읽는다. 실제 화면은 그 다음이다.
 * 두 열 배치와 작은 화면의 순서는 tools/detail.css 에서 정한다.
 */
.app-stage {
  background: var(--stage);
  min-height: auto;
  padding: clamp(72px, 9vw, 120px) 24px clamp(96px, 12vw, 160px);
}

.app-stage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background: radial-gradient(50% 60% at 50% 0%, var(--glow, transparent), transparent 70%);
  pointer-events: none;
}

.back {
  display: block;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 8px 0;
  font-size: var(--text-caption);
  color: var(--muted-dark);
  text-decoration: none;
  transition: color 150ms;
}

.back:hover, .back:focus-visible { color: var(--ink-on-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 13px 5px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted-dark);
}

.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint, #666);
  font-style: normal;
}

.app-stage h1 { font-size: var(--d2); line-height: 1.14; letter-spacing: -0.032em; }

.app-stage .desc {
  text-wrap: pretty;
  margin: 20px auto 0;
  max-width: 42ch;
  color: var(--muted-dark);
  font-size: clamp(0.96rem, 1.5vw, 1.09rem);
  letter-spacing: -0.01em;
}

/* 폰 — 화면이 실제로 켜져 있는 것처럼 보여야 한다 */
.phone {
  width: min(252px, 58vw);
  margin: 40px auto 0;
  border-radius: 40px;
  padding: 8px;
  background: linear-gradient(160deg, #34343c, #131317 42%, #26262d);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, 0.09) inset,
    0 40px 90px -28px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.7);
}

.phone img { border-radius: 33px; background: #0b0e11; }

.how {
  margin: 40px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.how li {
  list-style: none;
  padding: 8px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: var(--text-caption);
  color: var(--muted-dark);
  letter-spacing: -0.01em;
}

.open {
  display: inline-block;
  margin-top: 34px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--tint, var(--white));
  color: var(--ink-on-light);
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: transform 150ms ease, filter 150ms ease;
}

.open:hover, .open:focus-visible { transform: translateY(-1px); filter: brightness(1.08); }

.open.wait {
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
  cursor: default;
}

.open.wait:hover { transform: none; filter: none; }

.hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* 상세 아래 — 다른 앱들 */
.others {
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  padding: clamp(64px, 8vw, 96px) 24px;
  text-align: center;
}

.others .eyebrow { margin-bottom: 26px; }

.others ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .others ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .others ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.others a {
  display: block;
  padding: 20px 20px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--stage);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.others a:hover, .others a:focus-visible { border-color: #2c2c34; transform: translateY(-2px); }

.others a b {
  display: block;
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.others a span {
  display: block;
  margin-top: 5px;
  font-size: var(--text-caption);
  color: var(--muted-dark);
}

.others i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--tint);
}

/* ---------- 밝은 구간 ---------- */

.light-stage {
  background: var(--paper);
  color: var(--ink-on-light);
  border-top: 1px solid var(--line-dark);
  min-height: auto;
  padding: clamp(96px, 14vw, 168px) 24px;
}

.light-stage h2 { max-width: 18ch; margin-inline: auto; }

.light-stage .desc {
  text-wrap: pretty;
  margin: 20px auto 0;
  max-width: 40ch;
  color: var(--muted-light);
  font-size: clamp(0.96rem, 1.5vw, 1.09rem);
  letter-spacing: -0.01em;
}

.principles {
  margin: 56px auto 0;
  padding: 0;
  max-width: 860px;
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
}

@media (min-width: 760px) {
  .principles { grid-template-columns: repeat(3, 1fr); }
}

.principles li {
  list-style: none;
  background: #fff;
  padding: 30px 26px 34px;
}

.principles h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.principles p {
  text-wrap: pretty;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted-light);
  letter-spacing: -0.008em;
}

/* ---------- 꼬리말 ---------- */

.foot {
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  padding: 64px 24px 72px;
  font-size: 13.5px;
  color: var(--muted-dark);
}

.foot .inner { max-width: 860px; }

.foot-mark { height: 26px; width: auto; margin: 0 0 26px; }

.biz {
  margin: 0 0 28px;
  display: grid;
  gap: 10px 28px;
  padding: 0;
}

@media (min-width: 760px) {
  .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 긴 신고번호 항목은 작은 화면에서 항목명 아래로 내려 읽게 한다. */
.biz div { display: flex; gap: 12px; min-width: 0; }
.biz dt { flex: none; width: 9em; color: var(--muted-dim); margin: 0; }
.biz dd { min-width: 0; margin: 0; color: var(--ink-on-dark); overflow-wrap: anywhere; }
.biz a { display: inline-block; min-height: 24px; color: inherit; text-underline-offset: 3px; }
@media (max-width: 420px) {
  .biz div { flex-direction: column; gap: 2px; }
  .biz dt { width: auto; }
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.foot-links a { display: inline-block; padding: 8px 0; text-decoration: none; transition: color 150ms; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--ink-on-dark); }

.copy { margin: 22px 0 0; color: var(--muted-dim); font-size: 12.5px; }

/* ---------- 등장 ---------- */

.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.7, 0.28, 1),
    transform 0.85s cubic-bezier(0.22, 0.7, 0.28, 1);
}

.rise.in { opacity: 1; transform: none; }

/* 폰은 조금 늦게, 조금 더 크게 들어온다 — 시선이 글에서 화면으로 옮겨가게 */
.phone.rise { transform: translateY(38px) scale(0.965); transition-delay: 0.12s; }
.phone.rise.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise, .phone.rise { opacity: 1; transform: none; transition: none; }
}

/* GSAP 이 움직임을 맡으면 CSS transition 은 끈다 — 둘이 겹치면 늦고 끊긴다 */
html.gsap .rise, html.gsap .phone.rise { transition: none; }

/* 낱말 덮개(SplitText mask) — 낱말 사이 간격은 그대로 두어야 한다 */
.hero h1 .w { display: inline-block; }

/* ---------- 본문 페이지 (개인정보처리방침) ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.doc h1 { font-size: clamp(2rem, 5vw, 2.9rem); letter-spacing: -0.03em; }

.doc h2 {
  margin: 52px 0 14px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.doc p, .doc li { color: var(--body-dark); font-size: 15.5px; letter-spacing: -0.008em; }

.doc strong { color: var(--ink-on-dark); font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

.doc th, .doc td {
  border-bottom: 1px solid var(--line-dark);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  color: var(--body-dark);
}

.doc th { color: var(--ink-on-dark); font-weight: 600; }

.doc .updated { color: var(--muted-dim); font-size: var(--text-caption); }

.doc a { color: var(--link-dark); text-underline-offset: 3px; }

/* 개인정보처리방침에 남아 있는 옛 클래스 두 개 */

.doc .rows {
  margin: 18px 0 0;
  display: grid;
  gap: 10px 28px;
  padding: 0;
}

@media (min-width: 620px) {
  .doc .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.doc .rows div { display: flex; gap: 12px; }
.doc .rows dt { flex: none; width: 62px; color: var(--muted-dim); margin: 0; }
.doc .rows dd { margin: 0; color: var(--ink-on-dark); }

.doc .lead {
  font-size: clamp(1rem, 2vw, 1.16rem);
  color: var(--muted-dark);
  letter-spacing: -0.012em;
  margin-top: 18px;
}

.doc footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dim);
  font-size: var(--text-caption);
}

.doc footer p { margin: 4px 0; color: var(--muted-dim); font-size: var(--text-caption); }



/* 메인의 만드는 방식은 밝은 여백으로 끝난다. */
.studio { padding-block: clamp(72px, 8vw, 112px); }
.studio .eyebrow { color: var(--muted-light); }
.studio .inner { max-width: 1120px; }
.studio .desc { max-width: 48ch; font-size: var(--text-body); }
.studio .principles { max-width: none; margin-top: 40px; border: 0; border-radius: 0; background: none; gap: 32px; }
.studio .principles li { background: none; padding: 24px 0 0; border-top: 1px solid var(--line-light); }
.studio .principles p { font-size: var(--text-body); }
.studio-link { display: inline-block; margin-top: 32px; padding: 10px 0; font-size: var(--text-ui); text-underline-offset: 5px; }
.studio-link span { margin-left: 8px; }
.doc { max-width: 820px; }
.doc p, .doc li { font-size: var(--text-body); }
.doc table { table-layout: fixed; font-size: var(--text-ui); }
.doc thead th:first-child { width: 31%; }
.doc tbody th { font-weight: 600; }
.doc th, .doc td { padding: 16px 12px; overflow-wrap: anywhere; }
.doc td span { display: block; margin-top: 6px; color: var(--muted-dark); font-size: var(--text-caption); }
.doc .updated { margin-top: 24px; }
@media (max-width: 520px) {
  .doc th, .doc td { padding: 14px 8px; }
  .doc thead th:first-child { width: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile-phone img, .tile-more::after, .hero .cta, .open { transition: none; }
}


/* 홈페이지: 실제 서비스와 개발 소식을 이미지의 크기와 명확한 실행 경로로 구분한다. */
.service-grid, .upcoming-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; }
.service-grid > li, .upcoming-grid > li { min-width: 0; }
.service-card { height: 100%; border-radius: 24px; overflow: hidden; background: var(--card-surface); outline: 1px solid var(--image-outline); }
.service-art { display: flex; justify-content: center; align-items: flex-start; position: relative; overflow: hidden; aspect-ratio: 1.75; background: var(--stage); }
.service-art::after { position: absolute; inset: 0; content: ''; pointer-events: none; box-shadow: inset 0 -45px 50px -36px var(--art-shadow); }
.art-sudoku { background: var(--sudoku-surface); align-items: center; }
.art-coin { background: radial-gradient(ellipse at center bottom, var(--coin-glow), transparent), var(--coin-surface); }
.art-krx { background: radial-gradient(ellipse at center bottom, var(--krx-glow), transparent), var(--krx-surface); }
.art-ai { background: radial-gradient(ellipse at center bottom, var(--ai-glow), transparent), var(--ai-surface); }
.service-art .mascot { width: 42%; height: 94%; object-fit: contain; filter: drop-shadow(0 12px 18px var(--art-shadow)); }
.service-screen { position: relative; width: 51%; max-width: 265px; height: auto; margin-top: 26px; border-radius: 20px 20px 0 0; outline: 1px solid var(--image-outline); box-shadow: 0 16px 55px var(--art-shadow); }
.art-coin .service-screen { transform: rotate(-7deg); }
.art-krx .service-screen { transform: rotate(6deg); }
.art-ai .service-screen { width: 62%; margin-top: 24px; }
.service-copy { padding: 26px; }
.service-label { margin: 0 0 14px; display: flex; gap: 6px 16px; justify-content: space-between; flex-wrap: wrap; font-size: var(--text-caption); color: var(--body-dark); }
.service-state { display: inline-flex; align-items: center; gap: 6px; }
.service-state i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--tint); }
.service-card h3 { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; letter-spacing: -.04em; }
.service-card h3 a { text-decoration: none; }
.service-desc { min-height: 3.4em; margin: 14px 0 0; color: var(--body-dark); font-size: var(--text-ui); line-height: 1.7; }
.service-meta { margin: 14px 0 0; color: var(--body-dark); font-size: var(--text-caption); }
.service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.platform-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 14px; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink-on-light); text-decoration: none; font-size: var(--text-small); font-weight: 700; }
.platform-link.secondary { background: transparent; outline: 1px solid var(--line-hover); color: var(--ink-on-dark); }
.detail-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-size: var(--text-small); color: var(--body-dark); text-decoration: none; margin-left: auto; }
.platform-help { margin: 24px 0 0; font-size: var(--text-caption); color: var(--muted-dark); }
.service-art:focus-visible { outline-offset: -5px; }
.service-copy a:focus-visible, .service-art:focus-visible, .upcoming-card:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
.service-art:focus-visible, .upcoming-card:focus-visible { outline-offset: -5px; }
.service-copy h3 a:hover, .detail-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.upcoming { background: var(--stage); }
.upcoming-card { display: block; position: relative; height: 500px; overflow: hidden; isolation: isolate; border-radius: 24px; outline: 1px solid var(--image-outline); background: var(--black); text-decoration: none; }
.upcoming-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; }
.upcoming-card::after { content: ''; position: absolute; inset: 0; background: var(--image-shade); z-index: 1; }
.shooter-feature > img { object-position: 50% 21%; }
.upcoming-copy { position: absolute; z-index: 2; inset: auto 30px 28px; }
.development-label { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--label-shade); color: var(--ink-on-dark); font-size: var(--text-caption); }
.upcoming-copy h3 { margin: 14px 0 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; line-height: 1.25; color: var(--white); }
.upcoming-copy p { font-size: var(--text-lead); line-height: 1.5; margin: 12px 0 0; color: var(--ink-on-dark); }
.upcoming-more { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-hover); font-size: var(--text-small); color: var(--ink-on-dark); }
.studio { color: var(--ink-on-dark); background: var(--black); padding-block: 100px; min-height: auto; text-align: left; }
.studio .inner { max-width: 1120px; }
.studio-story { display: grid; align-items: center; gap: 36px; }
.studio h2 { font-size: clamp(30px, 4vw, 48px); }
.studio .desc { color: var(--studio-subtle); margin: 24px 0 0; font-size: var(--text-body); }
.studio-art { width: 100%; border-radius: 20px; outline: 1px solid var(--image-outline); }
.studio .eyebrow { color: var(--body-dark); }
.studio .principles { margin-top: 56px; border-color: var(--line-dark); }
.studio .principles li { border-color: var(--line-dark); }
.studio .principles h3 { color: var(--ink-on-dark); }
.studio .principles p { color: var(--body-dark); }
.studio .studio-link { color: var(--ink-on-dark); border-color: var(--line-hover); }
.service-grid a, .upcoming-card, .platform-link { transition: color 150ms, transform 150ms; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .platform-link:hover { transform: translateY(-2px); }
  .platform-link:active { transform: scale(.96); }
}
@media (min-width: 760px) {
  .service-grid, .upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-copy { padding: 30px; }
  .upcoming-card { height: 550px; }
  .studio-story { grid-template-columns: 1fr 1.1fr; }
}
@media (max-width: 759px) {
  .apps { padding: 58px 20px 64px; }
  .service-copy { padding: 23px; }
  .service-art { aspect-ratio: 1.5; }
  .service-desc { min-height: 0; }
  .upcoming-card { height: 480px; }
  .studio { padding: 68px 20px; }
  .studio-story { gap: 28px; }
}
/* WordPress가 소개·블로그 항목을 추가해도 좁은 화면에서 탐색이 넘치지 않는다. */
@media (max-width: 600px) {
  .nav { height: auto; min-height: 68px; padding: 8px 16px; flex-wrap: wrap; gap: 0 16px; }
  .nav .mark { min-height: 26px; }
  .nav ul { flex: 1 1 100%; justify-content: space-between; gap: 8px; }
  .nav ul a { padding-block: 9px; }
  .stage, .apps { scroll-margin-top: 86px; }
  .hero { padding-top: 42px; }
}
@media (max-width: 359px) {
  .service-copy { padding: 19px; }
  .service-actions { gap: 10px; }
  .detail-link { margin-left: 0; }
  .upcoming-copy { inset-inline: 22px; }
  .upcoming-card { height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-grid a, .upcoming-card, .platform-link { transition: none; }
}


/* ---------- 살아 있는 조형물 · 첫 화면 ---------- */
:root {
  --kinetic-blue: #485cff;
  --kinetic-violet: #783cf0;
  --kinetic-pearl: #dce0ff;
  --kinetic-lilac: #c0b3ff;
  --kinetic-copy: #bfc0d2;
  --kinetic-muted: #999bab;
  --kinetic-wash: rgba(72, 92, 255, .18);
  --kinetic-purple-wash: rgba(120, 60, 240, .12);
  --kinetic-hairline: rgba(190, 197, 255, .16);
  --kinetic-grid: rgba(190, 197, 255, .04);
  --kinetic-button-glow: rgba(107, 118, 255, .25);
  --kinetic-shadow: rgba(0, 0, 0, .5);
  --kinetic-out: cubic-bezier(.23, 1, .32, 1);
  --kinetic-in-out: cubic-bezier(.77, 0, .175, 1);
}
.hero--kinetic { position: relative; isolation: isolate; display: block; min-height: min(880px, calc(100svh - 48px)); padding: 0 clamp(24px, 5.6vw, 96px); text-align: left; background: var(--black); overflow: hidden; }
.hero-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halo { position: absolute; border-radius: 50%; }
.halo-a { width: 78%; aspect-ratio: 1; right: -12%; top: -18%; background: radial-gradient(ellipse, var(--kinetic-wash), transparent 68%); }
.halo-b { width: 62%; aspect-ratio: 1; right: 3%; bottom: -45%; background: radial-gradient(ellipse, var(--kinetic-purple-wash), transparent 65%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--kinetic-grid) 1px, transparent 1px); background-size: 25% 100%; opacity: .65; mask-image: linear-gradient(transparent, var(--black) 28%, transparent); }
.kinetic-layout { position: relative; min-height: min(790px, calc(100svh - 130px)); max-width: 1440px; margin: auto; display: flex; align-items: center; }
.kinetic-copy { position: relative; z-index: 2; width: 64%; padding: 76px 0 84px; pointer-events: none; }
.kinetic-kicker { display: flex; gap: 10px; align-items: center; margin: 0 0 36px; color: var(--kinetic-copy); font-size: 12px; font-weight: 500; letter-spacing: .035em; animation: kinetic-enter .8s var(--kinetic-out) both; }
.kinetic-kicker > span { font-size: 22px; line-height: 1; color: var(--kinetic-lilac); }
.hero--kinetic h1 { font-size: clamp(66px, 7.9vw, 122px); line-height: 1.12; letter-spacing: -.064em; font-weight: 850; white-space: nowrap; text-wrap: initial; }
.title-line { display: block; overflow: hidden; padding: 0 .05em .06em 0; margin-bottom: -.06em; }
.title-line > span { display: block; animation: kinetic-title 1.15s var(--kinetic-out) .08s both; }
.title-line:nth-child(2) > span { animation-delay: .18s; }
.title-line em { font-style: normal; color: var(--kinetic-pearl); background: linear-gradient(115deg, var(--white) 0%, var(--kinetic-pearl) 36%, var(--kinetic-lilac) 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kinetic-description { color: var(--kinetic-copy); max-width: 390px; font-size: 16px; line-height: 1.85; letter-spacing: -.025em; margin: 29px 0 0; animation: kinetic-enter 1s var(--kinetic-out) .28s both; }
.mobile-break { display: none; }
.kinetic-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 32px; animation: kinetic-enter 1s var(--kinetic-out) .38s both; pointer-events: auto; width: fit-content; }
.kinetic-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 54px; padding: 9px 10px 9px 24px; border-radius: 999px; background: var(--paper); color: var(--ink-on-light); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 36px var(--kinetic-button-glow); transition: transform 150ms var(--kinetic-out), box-shadow 150ms; }
.kinetic-cta > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--white); background: var(--ink-on-light); font-size: 22px; font-weight: 400; }
.kinetic-secondary { display: inline-flex; gap: 15px; align-items: center; min-height: 44px; color: var(--kinetic-copy); text-decoration: none; font-size: 13px; }
.kinetic-secondary:hover { color: var(--white); }
.kinetic-platform { margin: 20px 0 0; font-size: 12px; color: var(--kinetic-muted); animation: kinetic-enter 1s var(--kinetic-out) .48s both; }
.kinetic-art { position: absolute; width: 69%; aspect-ratio: 1; right: -12%; top: 50%; transform: translateY(-52%); pointer-events: none; }
.art-surface { position: absolute; inset: 0; animation: kinetic-art-in 1.6s var(--kinetic-out) .1s both; }
.kinetic-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.kinetic-art[data-renderer="webgl"] .kinetic-canvas { opacity: 1; }
.kinetic-poster { position: absolute; width: 68%; left: 16%; top: 15%; transition: opacity .6s; }
.kinetic-art[data-renderer="webgl"] .kinetic-poster { opacity: 0; }
.art-orbit { position: absolute; width: 85%; height: 85%; left: 7.5%; top: 7.5%; border: 1px solid var(--kinetic-hairline); border-radius: 50%; }
.orbit-one { transform: rotate(-28deg) scaleY(.56); }
.orbit-two { transform: rotate(49deg) scaleY(.74); opacity: .35; }
.art-spark { position: absolute; color: var(--kinetic-pearl); font-size: 26px; animation: kinetic-spark 5s var(--kinetic-in-out) infinite alternate; }
.spark-one { top: 19%; right: 20%; }
.spark-two { left: 18%; bottom: 18%; font-size: 14px; animation-delay: -2s; }
.kinetic-foot { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: auto; min-height: 76px; border-top: 1px solid var(--kinetic-hairline); }
.kinetic-down { min-height: 44px; display: flex; gap: 16px; align-items: center; color: var(--kinetic-muted); font-size: 11px; text-decoration: none; }
.kinetic-down > span { color: var(--kinetic-pearl); font-size: 22px; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--kinetic-muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-icon { width: 15px; font-size: 13px; }
.hero--kinetic a:focus-visible, .motion-toggle:focus-visible { outline: 2px solid var(--kinetic-pearl); outline-offset: 5px; }
.hero--kinetic.is-paused *, .hero--kinetic.is-offscreen * { animation-play-state: paused !important; }
/* 등장 중 멈추거나 키보드로 진입해도 문구와 버튼이 숨은 채 남지 않는다. */
.hero--kinetic:is(.is-paused, :focus-within) :is(.kinetic-kicker, .title-line > span, .kinetic-description, .kinetic-actions, .kinetic-platform, .art-surface) { animation: none; opacity: 1; transform: none; }
@keyframes kinetic-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kinetic-title { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes kinetic-art-in { from { opacity: 0; transform: translateY(22px) scale(.95) rotate(-9deg); } to { opacity: 1; transform: none; } }
@keyframes kinetic-spark { from { opacity: .4; transform: translateY(0) rotate(0); } to { opacity: .9; transform: translateY(-9px) rotate(25deg); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .kinetic-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 46px var(--kinetic-button-glow); }
  .kinetic-cta:active { transform: scale(.96); }
}
@media (min-width: 1600px) { .kinetic-art { right: -6%; width: 64%; } }
@media (max-width: 900px) {
  .hero--kinetic { padding-inline: 28px; min-height: auto; }
  .kinetic-layout { min-height: 670px; }
  .kinetic-copy { width: 80%; padding-block: 66px 100px; }
  .hero--kinetic h1 { font-size: clamp(64px, 9vw, 86px); }
  .kinetic-art { width: 82%; right: -27%; top: 49%; opacity: .85; }
  .kinetic-description { max-width: 295px; }
  .kinetic-kicker { margin-bottom: 28px; }
}
/* 모바일은 브라우저 바가 펼쳐진 작은 뷰포트(svh)를 기준으로 제목과 3D를 한 화면에 넣는다.
 * 글자 확대·아주 낮은 화면에서는 내용 높이가 우선이라 필요한 만큼 스크롤을 허용한다. */
@media (max-width: 760px) {
  .hero--kinetic { padding-inline: 24px; padding-bottom: 8px; overflow: hidden; }
  .hero-atmosphere { overflow: hidden; }
  .kinetic-layout { display: grid; grid-template-rows: auto minmax(140px, 1fr); height: calc(100svh - 142px); min-height: min-content; align-items: stretch; }
  .kinetic-copy { padding: 18px 0 0; width: 100%; }
  /* 작은 화면의 문구는 즉시 보여 주고 시선은 회전하는 3D에 둔다. */
  .hero--kinetic :is(.kinetic-kicker, .title-line > span, .kinetic-description, .kinetic-actions, .kinetic-platform) { animation: none; opacity: 1; transform: none; }
  .kinetic-kicker { font-size: 10px; gap: 7px; letter-spacing: 0; margin-bottom: 14px; }
  .kinetic-kicker > span { font-size: 16px; }
  .hero--kinetic h1 { font-size: clamp(36px, 9.8vw, 44px); line-height: 1.1; letter-spacing: -.058em; }
  .kinetic-description { font-size: 12px; line-height: 1.6; margin-top: 12px; max-width: 310px; }
  .mobile-break { display: inline; }
  .kinetic-actions { margin-top: 16px; gap: 6px 16px; }
  .kinetic-cta { min-height: 44px; padding: 6px 8px 6px 18px; gap: 17px; font-size: 12px; }
  .kinetic-cta > span { width: 30px; height: 30px; font-size: 20px; }
  .kinetic-secondary { font-size: 11px; gap: 8px; }
  .kinetic-platform { margin-top: 8px; font-size: 10px; }
  .kinetic-art { position: relative; top: auto; right: auto; transform: none; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; margin: 0; opacity: 1; }
  .kinetic-poster { width: auto; height: 80%; max-width: 90%; object-fit: contain; left: 50%; top: 10%; transform: translateX(-50%); }
  .kinetic-foot { min-height: 48px; }
  .kinetic-down, .motion-toggle { font-size: 10px; }
  .kinetic-down { gap: 9px; }
  .halo-a { width: 170%; right: -40%; top: 18%; }
}
@media (max-width: 359px) {
  .kinetic-actions { column-gap: 8px; }
  .kinetic-cta { gap: 13px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--kinetic *, .hero--kinetic *::before, .hero--kinetic *::after { animation: none !important; transition: none !important; }
  .title-line > span, .art-surface { transform: none; opacity: 1; }
}


/* ---------- 상세 페이지 · 본문 ---------- */

/*
 * 상세는 스토어 목록처럼 읽힌다 — 화면 둘러보기, 특징, 지금 숫자, 여는 법,
 * 알아둘 것. 각 구역은 검정 위에 얇은 선 하나로만 나뉜다. 카드를 쌓으면
 * 앱 안이 아니라 앱 소개서처럼 보인다.
 */
.sec {
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  padding: clamp(72px, 9vw, 120px) 24px;
}

.sec .inner { max-width: 980px; }

.sec h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.sec .lead {
  text-wrap: pretty;
  margin: 14px 0 0;
  max-width: 44ch;
  color: var(--muted-dark);
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

/* 화면 둘러보기 — 옆으로 넘기는 띠 */

.shots { overflow: hidden; }

.shots .inner { max-width: none; }

.shots-head { max-width: 980px; margin: 0 auto 30px; }

.strip {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 980px) / 2)) 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100vw - 980px) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar { display: none; }

.strip li {
  flex: none;
  width: min(280px, 68vw);
  scroll-snap-align: start;
}

.strip img {
  width: 100%;
  /* 스토어 샷과 게임의 실제 캡처 비율을 각각 유지한다. */
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line-dark);
  background: var(--stage);
}

.strip-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted-dim);
  text-align: center;
}

/* 특징 */

.feats {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(3, 1fr); } }

.feats li {
  background: var(--stage);
  padding: 26px 24px 28px;
}

.feats b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--tint, var(--ink-on-dark));
  font-variant-numeric: tabular-nums;
}

.feats h3 {
  margin: 12px 0 0;
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feats p {
  text-wrap: pretty;
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-dark);
  letter-spacing: -0.008em;
}

/* 지금 숫자 — Supabase 에서 읽는다(app.js). 못 읽으면 구역이 사라진다 */

.live {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
}

@media (min-width: 560px) { .live { grid-template-columns: repeat(3, 1fr); } }

.live > div { background: var(--stage); padding: 20px 22px 22px; }

.live b {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--tint, var(--ink-on-dark));
}

.live span {
  display: block;
  margin-top: 4px;
  font-size: var(--text-caption);
  color: var(--muted-dark);
}

.rank {
  width: 100%;
  margin: 26px 0 0;
  border-collapse: collapse;
  font-size: var(--text-ui);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.rank th, .rank td {
  padding: 13px 8px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  white-space: nowrap;
}

.rank th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.rank .r { width: 40px; color: var(--muted-dark); }
.rank tbody tr:first-child .r { color: var(--tint); font-weight: 800; }
/* 닉네임만 줄바꿈을 허용한다 — 320px 에서 표가 칸을 넘지 않게 */
.rank .n { white-space: normal; overflow-wrap: anywhere; }
.rank .p { text-align: right; font-weight: 700; }
.rank .t { text-align: right; color: var(--muted-dark); }
.rank .up { color: #f0616d; }
.rank .down { color: #4d8bf5; }

.rank-note {
  margin: 16px 0 0;
  font-size: var(--text-caption);
  color: var(--muted-dim);
}

/* 밖으로 나가는 것 / 안 나가는 것 — 사주 */

.inout {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
}

@media (min-width: 640px) { .inout { grid-template-columns: 1fr 1fr; } }

.inout > div { background: var(--stage); padding: 24px 24px 26px; }

.inout h3 {
  margin: 0 0 12px;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.inout h3.stay { color: var(--tint); }

.inout ul { margin: 0; padding: 0; list-style: none; }

.inout li {
  padding: 9px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.inout li:first-child { border-top: 0; }
.inout li span { color: var(--muted-dark); }

/* 여는 법 — 밝은 구간 */

.steps {
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  text-align: left;
  max-width: 860px;
}

@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: 22px 22px 24px;
}

.steps i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink-on-light);
  color: #fff;
  font-style: normal;
  font-size: var(--text-caption);
  font-weight: 700;
}

.steps h3 {
  margin: 14px 0 0;
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 6px 0 0;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--muted-light);
}

.light-stage .open { margin-top: 36px; }

/* 알아둘 것 */

.notes {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.notes li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 14.5px;
  line-height: 1.6;
  color: #a4a4ac;
  letter-spacing: -0.008em;
}

.notes li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint, #666);
}

.notes li:first-child { border-top: 0; }
.notes strong { color: var(--ink-on-dark); font-weight: 600; }

/* 여섯 단계 사다리 — AI 진단. 위가 높은 칸이다 */

.ladder {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
}

.ladder li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 16px;
  padding: 18px 22px;
  background: var(--stage);
  border-top: 1px solid var(--line-dark);
}

.ladder li:first-child { border-top: 0; }

.ladder b {
  grid-row: span 2;
  align-self: start;
  font-size: var(--text-ui);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tint);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.ladder li:nth-child(n+4) b { color: var(--muted-dark); }

.ladder h3 {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ladder p {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--muted-dark);
  letter-spacing: -0.008em;
}

/* 첫 화면에서 바로 실행할 수 있게 설명과 버튼을 한 덩이로 둔다. */
.app-stage { padding-block: 48px 64px; text-align: left; }
.app-stage::before { background: radial-gradient(50% 70% at 85% 40%, var(--glow, transparent), transparent); }
.app-stage .inner { display: grid; gap: 40px; max-width: 1120px; align-items: center; }
.app-intro { min-width: 0; }
.app-stage .back { margin: 0 0 18px; min-height: 40px; }
.app-stage .badge { font-size: var(--text-caption); }
.app-stage h1 { font-size: var(--app-title); line-height: 1.18; }
.app-stage .desc { margin: 22px 0 0; max-width: 42ch; font-size: var(--text-body); color: var(--body-dark); }
.app-stage .hint { max-width: 48ch; font-size: var(--text-caption); color: var(--muted-dark); }
.app-stage .how { margin: 24px 0 0; gap: 8px; justify-content: flex-start; }
.app-stage .how li { padding: 5px 11px; }
.app-stage .phone { margin: 0 auto; width: min(252px, 68vw); }
.app-stage .open { margin-top: 26px; }
.open span { margin-left: 12px; }
@media (min-width: 800px) {
  .app-stage { padding-block: 56px 72px; }
  .app-stage .inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; }
}

/* 출시 전 게임을 실행 가능한 버튼으로 보이게 하지 않는다. */
.release-notice { display: inline-block; margin: 30px 0 0; padding-block: 12px; border-block: 1px solid var(--line-hover); color: var(--body-dark); font-size: var(--text-ui); }
.launch-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.open-secondary { background: var(--paper); color: var(--ink-on-light); }
.light-stage .open-secondary { background: var(--ink-on-light); color: var(--paper); }
.launch-actions .open { margin-top: 28px; }
@media (max-width: 899px) { .launch-actions { justify-content: center; } }
