#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Noto Sans KR', sans-serif;
  transition: opacity 0.5s ease-out;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.splash-logo {
  width: 200px;
  height: auto;
  /* PWA 기본 스플래시와 같은 크기로 시작 */
  animation: logoEntrance 1.2s ease-out;
}

.splash-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #222;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.splash-spinner.show {
  opacity: 1;
  animation: spin 1s linear infinite;
}

.splash-text {
  color: #666;
  font-size: 14px;
  margin: 0;
  animation: fadeIn 0.8s ease-out 0.8s both;
  opacity: 0;
}

/* 애니메이션 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoEntrance {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spinnerEntrance {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

/* 숨기기 애니메이션 */
#splash-screen.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}