/* Layout base mobile-first */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
}

.progress-wrap {
  margin-top: var(--space-2);
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-bottom: var(--space-2);
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width var(--duration-fast) var(--ease);
}

.screen {
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  animation: fadeIn var(--duration-fast) var(--ease);
}

.screen.is-active,
.screen:not([hidden]) {
  display: flex;
}

.screen[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-mini {
  margin-top: auto;
  padding: var(--space-4) 0 var(--space-6);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
