/* 🎬 게임 첫 화면(타이틀) 공통 모양 — kit/title.css v2 (2026-11-10). 짝: kit/title.js, 사용법: 템플릿 README '🎬 첫 화면(타이틀)'
   게임마다 바꾸는 것은 게임 style.css 에서 (이 파일은 그대로):
     .lt { --lt-a, --lt-b (이름·플레이 단추 그러데이션), --lt-ink (글자), --lt-muted (작은 글자), --lt-brand (LEAPINITY 글자),
           --lt-sh (플레이 단추 아래 진한 그림자색), --lt-glow (빛·그림자 rgba), --lt-bgc (바탕색), --lt-fade (가운데 흰 빛, none 이면 없음),
           --lt-name (이름 글자 크기, 긴 이름만) ; background-image … (무늬) }
     .lt-o 떠다니는 그림: 자리(top/left/right/bottom)·크기는 게임 CSS 클래스로, 기울기는 --r (transform 은 쓰지 말 것: 움직임이 덮어씀)
   크기: --k (보통 1, 컴퓨터 큰 화면 1.5, 가로 휴대폰 .66) */
.lt { --lt-a: #ff8fb8; --lt-b: #8b7cf6; --lt-ink: #2f3550; --lt-muted: #7a809c; --lt-brand: var(--lt-b); --lt-sh: #6d5fd6; --lt-glow: rgba(139, 124, 246, .4); --lt-bgc: #fff;
  --lt-fade: radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .7) 38%, rgba(255, 255, 255, 0) 75%);
  --k: 1;
  position: fixed; inset: 0; z-index: 890; display: none; overflow: hidden; margin: 0;
  background-color: var(--lt-bgc); color: var(--lt-ink);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  word-break: keep-all; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  opacity: 1; transition: opacity .22s ease; }
html.lt-on .lt { display: block; }
html.lt-on, html.lt-on body { overflow: hidden; }
.lt.lt-out { opacity: 0; pointer-events: none; }
/* 처음 온 사람(로그인 전)도 첫 화면을 먼저: 키트 로그인 화면은 첫 화면이 닫힌 뒤(플레이하기)에 보여요 (v2) */
html.lt-on .kit-login { display: none !important; }
.lt *, .lt *::before, .lt *::after { box-sizing: border-box; }

/* 배경: 떠다니는 그림 + 가운데 흰 빛(글자가 잘 보이게) */
.lt-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lt-bg::after { content: ""; position: absolute; inset: 0; background: var(--lt-fade); }
.lt-o { position: absolute; line-height: 1; filter: drop-shadow(0 6px 10px rgba(60, 50, 110, .2)); transform: rotate(var(--r, 0deg));
  animation: lt-bob var(--lt-dur, 6.5s) ease-in-out var(--lt-delay, 0s) infinite alternate; will-change: transform; }
.lt-o svg, .lt-o img { display: block; }
.lt-o:nth-child(2n) { --lt-dur: 8s; --lt-dx: -7px; --lt-dy: -12px; }
.lt-o:nth-child(3n) { --lt-dur: 7.2s; --lt-delay: -2.5s; --lt-dr: -5deg; }
.lt-o:nth-child(4n) { --lt-delay: -4s; --lt-dx: 9px; }
.lt-o:nth-child(5n) { --lt-dur: 9s; --lt-dy: -18px; }
.lt-o:nth-child(7n) { --lt-delay: -1.2s; --lt-dr: 7deg; }
@keyframes lt-bob {
  from { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  to { transform: translate(var(--lt-dx, 6px), var(--lt-dy, -14px)) rotate(calc(var(--r, 0deg) + var(--lt-dr, 4deg))); }
}

/* 오른쪽 위 계정 칩 자리 (title.js 가 #accountSlot 을 여기로 옮김) */
.lt-acc { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); max-width: calc(100% - 24px); display: flex; justify-content: flex-end; }

/* 가운데 */
.lt-wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(10px * var(--k)); text-align: center;
  padding: max(68px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.lt-logo { display: block; width: calc(96px * var(--k)); height: calc(96px * var(--k)); margin: 0 0 calc(6px * var(--k)); filter: drop-shadow(0 10px 20px var(--lt-glow)); flex: none; }
.lt-brand { margin: 0; font-weight: 800; letter-spacing: .32em; padding-left: .32em; font-size: calc(15px * var(--k)); line-height: 1.2; color: var(--lt-brand); }
.lt-name { margin: 0; padding: 0 4px; font-size: var(--lt-name, calc(min(52px, 11.4vw) * var(--k))); font-weight: 900; line-height: 1.12; white-space: nowrap; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--lt-a), var(--lt-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lt-sub { margin: 0 0 calc(18px * var(--k)); color: var(--lt-muted); font-size: max(13px, calc(15px * var(--k))); font-weight: 600; line-height: 1.4; }
.lt-play { flex: none; border: 0; border-radius: 999px; min-height: 56px; padding: calc(18px * var(--k)) calc(52px * var(--k)); margin: 0;
  font-family: inherit; font-size: calc(22px * var(--k)); font-weight: 900; line-height: 1.2; letter-spacing: .02em; color: #fff; cursor: pointer;
  background: linear-gradient(90deg, var(--lt-a), var(--lt-b)); text-shadow: 0 1px 2px rgba(0, 0, 0, .14);
  box-shadow: 0 calc(10px * var(--k)) 0 var(--lt-sh), 0 calc(18px * var(--k)) calc(30px * var(--k)) var(--lt-glow);
  transition: transform .1s, box-shadow .1s; }
.lt-play:hover { filter: brightness(1.04); }
.lt-play:active { transform: translateY(calc(6px * var(--k))); box-shadow: 0 calc(4px * var(--k)) 0 var(--lt-sh), 0 calc(10px * var(--k)) calc(20px * var(--k)) var(--lt-glow); }
.lt-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(14px * var(--k)); margin-top: calc(22px * var(--k)); }
.lt-pill { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0; border: 0; border-radius: 999px; cursor: pointer;
  padding: calc(9px * var(--k)) calc(15px * var(--k)); background: #fff; color: var(--lt-muted); font-family: inherit; font-size: calc(14px * var(--k)); font-weight: 800; line-height: 1.2;
  box-shadow: 0 3px 10px rgba(40, 40, 80, .14); transition: transform .1s; }
.lt-pill:active { transform: scale(.95); }
.lt-play:focus-visible, .lt-pill:focus-visible { outline: 3px solid var(--lt-b); outline-offset: 4px; }

/* 컴퓨터 큰 화면: 가운데 로고·이름·단추를 1.5배 */
@media (min-width: 900px) and (min-height: 680px) { .lt { --k: 1.5; } }
/* 가로 휴대폰(낮은 화면): 한 화면에 다 들어가게 작게 (스크롤·겹침 없음) */
@media (orientation: landscape) and (max-height: 500px) {
  .lt { --k: .66; }
  .lt-wrap { gap: 5px; padding-top: max(50px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .lt-logo { width: 54px; height: 54px; margin-bottom: 0; }
  .lt-name { font-size: var(--lt-name-land, 36px); }
  .lt-sub { margin-bottom: 8px; }
  .lt-play { min-height: 48px; padding: 10px 40px; font-size: 18px; box-shadow: 0 6px 0 var(--lt-sh), 0 10px 20px var(--lt-glow); }
  .lt-mini { margin-top: 10px; gap: 10px; }
  .lt-pill { font-size: 13px; padding: 6px 13px; }
}
/* 아주 낮은 가로 화면(가로 360 미만 높이 등)은 로고를 빼서 자리 확보 */
@media (orientation: landscape) and (max-height: 340px) { .lt-logo { display: none; } }
/* 움직임 줄이기 설정이면 안 움직임 */
@media (prefers-reduced-motion: reduce) { .lt-o { animation: none; } .lt, .lt-play, .lt-pill { transition: none; } }
