/* Critical CSS loaded before the main app bundle */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f2f5;
  color: #050505;
  min-width: 320px;
  width: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  background: #f0f2f5;
}

#root {
  min-height: 100vh;
}

.initial-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  z-index: 9999;
}

.initial-loader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.initial-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.initial-loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e4e6eb;
  border-top-color: #6e9fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
  display: none;
}

.snap-item {
  scroll-snap-align: start;
  height: 100vh;
  width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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