/* First-entry loading: Figma「反饋和提醒 / 頁面間跳轉加載」.
   This stylesheet loads in <head>, before any app content can paint. */
.deus-locale-bootstrap {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  outline: none;
  cursor: progress;
  overscroll-behavior: contain;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.deus-locale-bootstrap[hidden],
.deus-locale-bootstrap [hidden] {
  display: none !important;
}

.deus-locale-bootstrap__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: max-content;
  min-width: 90px;
  max-width: 100%;
  min-height: 90px;
  padding: 16px 17px;
  gap: 6px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.deus-locale-bootstrap__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 56px;
  gap: 5px;
}

.deus-locale-bootstrap__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #a7d3e9;
  animation: deus-locale-bootstrap-pulse 1.2s ease-in-out infinite;
}

.deus-locale-bootstrap__dot:nth-child(2) {
  background: var(--deus-figma-blue, #0078c8);
  animation-delay: 0.15s;
}

.deus-locale-bootstrap__dot:nth-child(3) {
  background: #44b549;
  animation-delay: 0.3s;
}

.deus-locale-bootstrap__message {
  margin: 0;
  color: var(--deus-figma-muted, #6f6f6f);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.428571;
  text-align: center;
  white-space: nowrap;
}

.deus-locale-bootstrap[data-state="error"] {
  cursor: default;
  touch-action: auto;
}

.deus-locale-bootstrap[data-state="error"] .deus-locale-bootstrap__card {
  width: 280px;
  max-width: 100%;
  gap: 16px;
}

.deus-locale-bootstrap[data-state="error"] .deus-locale-bootstrap__message {
  white-space: normal;
  overflow-wrap: anywhere;
}

.deus-locale-bootstrap__retry {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--deus-figma-blue, #0078c8);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.deus-locale-bootstrap__retry:focus-visible {
  outline: 3px solid var(--deus-figma-blue, #0078c8);
  outline-offset: 3px;
}

@keyframes deus-locale-bootstrap-pulse {
  0%, 80%, 100% { opacity: 0.45; }
  40% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .deus-locale-bootstrap__dot { animation: none; }
}
