* {
  box-sizing: border-box;
}

:root {
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-50: #fff7ed;
  --slate-900: #0f172a;
  --slate-600: #475569;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--orange-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overscroll-behavior: none;
}

.app-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: #fff;
}

.sigap-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.loader-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(145deg, var(--orange-500), var(--orange-600) 58%, var(--orange-700));
  transition: opacity .28s ease, visibility .28s ease;
}

.loader-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 2px;
  color: #fff;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.loader-screen h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.loader-screen p {
  max-width: 440px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  opacity: .88;
}

.spinner {
  width: 28px;
  height: 28px;
  margin-top: 14px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin .8s linear infinite;
}

.loading-text {
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}

.fallback-button {
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

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

@media (min-width: 900px) {
  .loader-screen p {
    font-size: 14px;
  }
}
