/* 시작 스플래시 (코덱스 H 시안: 도형 조각이 모여 로고 마크가 되고 글자가 떠오름) — 색은 앱 톤(그라파이트·크림)에 맞춤
   - 페이지를 열자마자 보여서 앱 스크립트 로딩 시간을 가림, 준비되면 12-account-billing-sns.js 가 닫음(최소 2.8초)
   - 움직임은 CSS 애니메이션: 앱 스크립트를 읽는 동안에도 끊기지 않음
   - .ar-play 를 다시 붙이면 처음부터 다시 재생 */
#arSplashIntro {
  --sp-bg: #151518; --sp-cream: #efe4d2; --sp-caramel: #c9a27a; --sp-muted: #a39e95;
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: opacity .45s ease; background: var(--sp-bg); color: var(--sp-cream); font-family: 'Pretendard Variable', Pretendard, sans-serif;
}
#arSplashIntro.hidden { display: none; }
html.ar-landing-boot #arSplashIntro { display: none; } /* 랜딩으로 열릴 때는 스플래시 없음 */
#arSplashIntro .sp-lockup { position: relative; width: 88vw; display: flex; align-items: center; justify-content: center; gap: 4.5vw; }
#arSplashIntro .sp-symbol { position: relative; flex: 0 0 auto; width: 17vw; max-width: 240px; aspect-ratio: 9 / 16; max-height: 48vh; }
#arSplashIntro .sp-piece { position: absolute; will-change: transform; }
#arSplashIntro .sp-body { background: var(--sp-cream); inset: 0; border-radius: 20% / 11.25%; }
#arSplashIntro .sp-cap { background: var(--sp-caramel); left: 0; top: 0; width: 100%; height: 28%; border-radius: 20% 20% 0 0 / 40% 40% 0 0; transform-origin: left bottom; }
#arSplashIntro .sp-wedge { width: 47%; height: 31%; left: 34%; top: 42%; background: var(--sp-bg); clip-path: polygon(0 0, 100% 50%, 0 100%); }
#arSplashIntro .sp-notch { position: absolute; left: 0; top: 24%; height: 5%; width: 100%; background: var(--sp-bg); transform: rotate(-9deg) scaleX(1.1); transform-origin: center; }
#arSplashIntro .sp-type { position: relative; padding-top: 1.5vw; text-align: left; }
#arSplashIntro .sp-word { font-size: 10.5vw; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0; color: var(--sp-cream); }
#arSplashIntro .sp-line { font-size: clamp(17px, 1.9vw, 27px); margin: 24px 0 0 .45vw; letter-spacing: -.02em; color: var(--sp-muted); }
#arSplashIntro .sp-corner { position: absolute; background: #1c1c20; width: 22vw; aspect-ratio: 1; border-radius: 50%; left: -12vw; bottom: -13vw; }
#arSplashIntro .sp-corner.second { left: auto; bottom: auto; right: -13vw; top: -14vw; width: 33vw; background: #1a1a1e; }
#arSplashIntro .sp-reg { position: absolute; left: 4vw; top: 5vh; display: flex; gap: 9px; }
#arSplashIntro .sp-reg i { width: 10px; height: 10px; background: var(--sp-cream); }
#arSplashIntro .sp-reg i:nth-child(2) { background: var(--sp-caramel); }
#arSplashIntro .sp-reg i:nth-child(3) { background: #3a3836; }

/* 한 번만 재생 (원래 시안의 0~1.8초 구간을 CSS 로) */
#arSplashIntro.ar-play .sp-body { animation: arSpBody 1.05s cubic-bezier(.33, 1, .68, 1) .08s both; }
#arSplashIntro.ar-play .sp-cap { animation: arSpCap .95s cubic-bezier(.33, 1, .68, 1) .32s both; }
#arSplashIntro.ar-play .sp-notch { animation: arSpFade .95s cubic-bezier(.33, 1, .68, 1) .32s both; }
#arSplashIntro.ar-play .sp-wedge { animation: arSpWedge .8s cubic-bezier(.33, 1, .68, 1) .65s both; }
#arSplashIntro.ar-play .sp-symbol { animation: arSpSettle .65s cubic-bezier(.33, 1, .68, 1) 1.08s both; }
#arSplashIntro.ar-play .sp-type { animation: arSpType .7s cubic-bezier(.33, 1, .68, 1) .95s both; }
#arSplashIntro.ar-play .sp-corner { animation: arSpCornerA .65s cubic-bezier(.33, 1, .68, 1) 1.08s both; }
#arSplashIntro.ar-play .sp-corner.second { animation-name: arSpCornerB; }
@keyframes arSpBody { from { transform: translate(-140%, 75%) rotate(-32deg) scale(1.5); } to { transform: none; } }
@keyframes arSpCap { from { transform: translate(110%, -170%) rotate(65deg); } to { transform: none; } }
@keyframes arSpWedge { from { transform: translateX(240%) rotate(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes arSpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes arSpSettle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes arSpType { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: none; } }
@keyframes arSpCornerA { from { transform: translate(-15%, 15%); } to { transform: none; } }
@keyframes arSpCornerB { from { transform: translate(15%, -15%); } to { transform: none; } }

/* 휴대폰: 세로로 */
@media (max-width: 600px) {
  #arSplashIntro .sp-lockup { width: 100%; flex-direction: column; gap: 38px; margin-top: -12px; }
  #arSplashIntro .sp-symbol { width: 126px; max-height: 34vh; }
  #arSplashIntro .sp-type { text-align: center; padding: 0; }
  #arSplashIntro .sp-word { font-size: 15vw; letter-spacing: -.035em; }
  #arSplashIntro .sp-line { font-size: 17px; margin-top: 20px; }
  #arSplashIntro .sp-reg { left: 28px; top: max(40px, env(safe-area-inset-top)); }
  #arSplashIntro .sp-corner { width: 54vw; left: -36vw; bottom: -19vw; }
  #arSplashIntro .sp-corner.second { width: 72vw; right: -48vw; top: -20vw; left: auto; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #arSplashIntro *, #arSplashIntro { animation: none !important; }
}
