/* Boot loading — fullscreen / no-card, Mandarin warm paper palette */

.fc-load {
  --fc-load-primary: #fbbf24;
  --fc-load-secondary: #0d9488;
  --fc-load-accent: #2563eb;
  --fc-load-bg: #faf8f5;
  --fc-load-brand: #92400e;
  --fc-load-msg: #57534e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.fc-load--boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(254, 243, 199, 0.55), transparent 55%),
    var(--fc-load-bg);
}

.fc-load--boot.fade-out {
  animation: hskLoadOut 0.35s ease-out forwards;
  pointer-events: none;
}

@keyframes hskLoadOut {
  to { opacity: 0; visibility: hidden; }
}

/* Fullscreen — no card */
.fc-load__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 360px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.fc-load__badge {
  width: 80px;
  height: 80px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: hskLoadBadge 2.4s ease-in-out infinite;
}

@keyframes hskLoadBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.fc-load__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.fc-load__brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fc-load-brand);
}

.fc-load__map {
  display: block;
  width: 100%;
  height: 72px;
  overflow: visible;
}

.fc-load__path-bg {
  fill: none;
  stroke: rgba(120, 113, 108, 0.16);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fc-load__path-fill {
  fill: none;
  stroke: url(#hskLoadGradBoot);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hskLoadPath 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.45));
}

@keyframes hskLoadPath {
  0% { stroke-dashoffset: 100; opacity: 0.5; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0.5; }
}

.fc-load__node {
  fill: #d6d3d1;
  stroke: #fff;
  stroke-width: 2;
  animation: hskLoadNode 2.4s ease-in-out infinite;
}

.fc-load__node--d1 { animation-delay: 0.35s; }
.fc-load__node--d2 { animation-delay: 0.7s; }
.fc-load__node--d3 { animation-delay: 1.05s; }

@keyframes hskLoadNode {
  0%, 100% { fill: #d6d3d1; }
  25%, 45% { fill: var(--fc-load-secondary); }
  55% { fill: var(--fc-load-primary); }
}

.fc-load__runner {
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.45));
}

.fc-load__msg {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fc-load-msg);
  letter-spacing: -0.01em;
  animation: hskLoadMsg 1.6s ease-in-out infinite;
}

@keyframes hskLoadMsg {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-load__badge,
  .fc-load__path-fill,
  .fc-load__node,
  .fc-load__msg {
    animation: none !important;
  }
}
