@font-face {
  font-family: 'Chiron GoRound TC';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/chiron-go-round-tc-logo-v1.011.woff2') format('woff2');
}

.boot-loading {
  --boot-loading-brand: rgb(16 185 129);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
}

html[data-color-theme='blue'] .boot-loading {
  --boot-loading-brand: rgb(59 130 246);
}

.boot-loading__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.boot-loading__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: boot-logo-pulse 2s ease-in-out infinite;
}

.boot-loading__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.boot-loading__logo--dark {
  display: none;
}

.boot-loading__text {
  color: #242424;
  font-family: 'Chiron GoRound TC', 'Nunito', 'PingFang TC', sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.boot-loading__text-accent {
  color: var(--boot-loading-brand);
}

.boot-loading__dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.boot-loading__dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #666;
  animation: boot-dot-bounce 1.4s ease-in-out infinite;
}

.boot-loading__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.boot-loading__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes boot-logo-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes boot-dot-bounce {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

html.dark .boot-loading,
html[data-theme='dark'] .boot-loading {
  background: #18181b;
}

html.dark .boot-loading__logo--light,
html[data-theme='dark'] .boot-loading__logo--light {
  display: none;
}

html.dark .boot-loading__logo--dark,
html[data-theme='dark'] .boot-loading__logo--dark {
  display: block;
}

html.dark .boot-loading__text,
html[data-theme='dark'] .boot-loading__text {
  color: #f5f5f5;
}

@media (max-width: 768px) {
  .boot-loading__brand { gap: 7px; }
  .boot-loading__logo { width: 40px; height: 40px; }
  .boot-loading__text { font-size: 25px; }
}
