/* Fallback styles - extracted from index.html for CSP compliance */
/* This replaces the inline <style> tag in index.html */

html,
body {
  height: 100%;
  margin: 0;
  background-color: rgb(19, 191, 152);
}

/* 先確保使用者永遠看到底色與動畫 */
#fallback {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c7d2fe;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #475569;
  border-top-color: #93c5fd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 當應用掛載完成，用 class 隱藏 fallback（而非依賴外部 CSS） */
.app-ready #fallback {
  display: none !important;
}

/* GTM noscript iframe hidden by default */
.gtm-noscript {
  display: none;
  visibility: hidden;
}