/* =========================================
   Splash Screen Styles
   ========================================= */

#screen-splash {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.splash-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  pointer-events: none;
}

/* 모바일 안드로이드 웹뷰 재생 버튼 강제 숨김 */
.splash-video-bg::-webkit-media-controls {
  display: none !important;
}
.splash-video-bg::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.splash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

.splash-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-top-text {
  font-family: 'Pretendard', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.splash-logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  
  /* 럭셔리 골드 그라데이션 및 샤인 효과 */
  background: linear-gradient(-45deg, #bf953f 15%, #fcf6ba 30%, #b38728 45%, #fbf5b7 60%, #bf953f 75%);
  background-size: 200% auto;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  
  /* 화려한 후광(Glow) 효과 */
  filter: drop-shadow(0 0 15px rgba(252, 246, 186, 0.4)) drop-shadow(0 4px 10px rgba(0,0,0,0.8));
  
  /* 모바일 강제 리페인트 트리거 */
  will-change: background-position, opacity, transform;
  -webkit-transform: translateZ(0);
  
  /* 텍스트 등장 + 표면이 빛나는 애니메이션 (분리) */
  animation-name: fadeInUp, shineText;
  animation-duration: 1.2s, 3.5s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), linear;
  animation-delay: 0.5s, 0s;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
}

.splash-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.splash-skip-btn {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: background 0.3s ease;
  animation: fadeIn 1s ease 2s forwards;
}

.splash-skip-btn:hover, .splash-skip-btn:active {
  background: rgba(255,255,255,0.25);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shineText {
  0% { background-position-x: 0%; }
  100% { background-position-x: -200%; }
}

/* 한글 앱 이름이 화면 폭을 넘지 않도록 */
.splash-logo-title {
  font-family: 'Pretendard', var(--font-sans), sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 4rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* ── 시작 로딩 영상 (블랙·골드) ── */
#screen-splash { background-color: #080706; }
.splash-video-wrap { position: absolute; inset: 0; z-index: 1; background: #080706; display: flex; align-items: center; justify-content: center; }
.splash-video { width: 100%; height: 100%; object-fit: contain; background: #080706; pointer-events: none; }
.splash-video::-webkit-media-controls,
.splash-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
