/* XCROLL App Kit — 공용 기반 스타일. 화면별 스타일은 screens/<group>.css 에 둔다.
 * 모든 선택자는 .xk-screen 아래로 스코프해서 시안 페이지 스타일과 섞이지 않게 한다. */

/* [사이트 사본] 잘난체 @font-face 제거: 온보딩·튜토리얼 화면은 사이트에서 쓰지 않아 폰트(3.7MB)·lottie·t1.png를 뺐다.
   그 화면을 쓰려면 concepts/_appkit 원본에서 해당 에셋과 이 규칙을 다시 가져올 것. */

.xk-host { position: relative; overflow: hidden; }

.xk-screen {
  /* 앱 토큰 (UI-SPEC §1) */
  --xk-primary: #5765FF;
  --xk-ink: #2C303F;
  --xk-sub: #8089A5;
  --xk-muted: #98A1BE;
  --xk-bg-soft: #F5F6F9;
  --xk-border: #EEF0F4;
  --xk-wallet: #4B47D6;
  --xk-btn: #3167D4;
  --xk-onboard: #4D45CC;
  --xk-toast: #3F4559;
  --xk-wp: #F2D850; --xk-wp-ring: #E0B92E;
  --xk-gp: #55DC8B; --xk-gp-ring: #2FC471;
  --xk-sp: #798DF1; --xk-sp-ring: #5B6FE0;
  --xk-footer-on: #2C303F; --xk-footer-off: #B8BCC8;

  position: absolute; top: 0; left: 0;
  width: 402px; height: 874px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #fff;
  color: var(--xk-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 14px; line-height: 1.35;
  /* 시안 페이지에서 물려받는 글꼴 설정 차단 (굵기·자간·기울임·대소문자·정렬) */
  font-weight: 400; font-style: normal; letter-spacing: normal; word-spacing: normal;
  text-transform: none; text-align: left; text-indent: 0; text-shadow: none; font-variant: normal; font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
  word-break: keep-all;
}
.xk-screen *, .xk-screen *::before, .xk-screen *::after { box-sizing: border-box; margin: 0; padding: 0; }
.xk-screen img, .xk-screen svg { display: block; max-width: none; flex: none; }
.xk-screen button { font: inherit; color: inherit; background: none; border: 0; }

/* iOS 상태바 (캡처 기준 높이 54) */
.xk-statusbar {
  position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 52px; pointer-events: none;
  font-weight: 600; font-size: 17px; letter-spacing: -0.2px;
}
.xk-sb-dark { color: #000; fill: #000; }
.xk-sb-light { color: #fff; fill: #fff; }
.xk-sb-right { display: flex; align-items: center; gap: 6px; }
.xk-sb-right svg { fill: currentColor; }
.xk-sb-batt { width: 27px; height: 13px; border: 1.2px solid currentColor; border-radius: 4px; padding: 1.5px; opacity: .9; position: relative; }
.xk-sb-batt::after { content: ''; position: absolute; right: -4px; top: 4px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.xk-sb-batt span { display: block; height: 100%; width: 100%; border-radius: 2px; background: currentColor; }

/* 선택: 간단한 폰 베젤. 시안이 자체 프레임을 쓰면 안 써도 된다. */
.xk-phone { position: relative; padding: 12px; border-radius: 64px; background: #0d0f14; box-shadow: 0 40px 80px -20px rgba(17, 24, 64, .35), inset 0 0 0 1.5px #2a2e38; }
.xk-phone > .xk-host { border-radius: 52px; }
.xk-phone::after { content: ''; position: absolute; z-index: 60; top: 23px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }

@media (prefers-reduced-motion: reduce) {
  .xk-screen *, .xk-screen *::before, .xk-screen *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
