*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

#app {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
}

#screen-container {
  position: relative;
  width: 100%;
  min-height: 100dvh;
}

.screen {
  width: 100%;
  min-height: 100dvh;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  display: flex;
  flex-direction: column;
}

/* Progress bar */
#progress-bar-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 4px;
  background: var(--border-light);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#progress-bar-container.visible {
  opacity: 1;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  transition: width 0.4s var(--ease);
  border-radius: 0 2px 2px 0;
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Utility */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-auto { margin-top: auto; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
