/* 브랜드 디스플레이 폰트 — tokens.css 로드 전 스플래시 워드마크에 쓰기 위해 인라인 복제.
 * Latin unicode-range로 한정(스플래시 워드마크는 라틴). 프리로드된 파일을 즉시 사용. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/fonts/SpaceGrotesk-latin-var.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
/* 정적 스플래시 — JS 로드 전에도 즉시 표시. 토큰과 동일한 브랜드 색을 인라인으로 복제
 * (tokens.css 로드 전 초기 페인트용). React 마운트 후 splash.ts가 최소 2초 뒤 제거. */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #0a0c12;
  color: #eceef7;
  opacity: 1;
  transition: opacity 340ms cubic-bezier(0.4, 0, 0.2, 1);
}
#splash.splash--hide {
  opacity: 0;
}
.splash__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.splash__mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(140deg, #818cff 0%, #2dd4bf 135%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.splash__mark svg {
  width: 32px;
  height: 32px;
}
.splash__word {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.028em;
}
.splash__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(129, 140, 255, 0.25);
  border-top-color: #818cff;
  animation: splash-spin 720ms linear infinite;
}
@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-color-scheme: light) {
  #splash {
    background: #f4f5fb;
    color: #171a29;
  }
  .splash__mark {
    background: linear-gradient(140deg, #4b57d4 0%, #0d9488 135%);
    box-shadow: 0 8px 24px rgba(75, 87, 212, 0.3);
  }
  .splash__spinner {
    border-color: rgba(75, 87, 212, 0.25);
    border-top-color: #4b57d4;
  }
}
@media (prefers-reduced-motion: reduce) {
  #splash {
    transition: none;
  }
  .splash__spinner {
    animation: none;
  }
}
