/**
 * SPP critical CSS — extracted from index.html inline <style> block
 * to support a strict CSP without 'unsafe-inline' on style-src-elem.
 */

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #ffffff;
  color: #0f172a;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  position: fixed;
  width: 100%;
}

#root {
  height: 100%;
  width: 100%;
  position: relative;
}

.spp-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 9999;
}

.spp-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spp-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
  color: #0f172a;
}

.spp-subtitle {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin-bottom: 30px;
}

.spp-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #0f172a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spp-status {
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@media (max-width: 768px) {
  .spp-title { font-size: 24px; }
  .spp-subtitle { font-size: 14px; }
  .spp-logo { width: 60px; height: 60px; }
}

.spp-loaded .spp-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}
