html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

#app {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.screen {
  min-height: 100vh;
  padding: var(--spacing-md);
  padding-top: max(var(--spacing-md), env(safe-area-inset-top));
  padding-bottom: max(80px, env(safe-area-inset-bottom));
}

.container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* Utilities */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

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

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* Scrollbar */
#app::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Screen transitions */
@keyframes screen-enter-anim {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screen-exit-anim {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.screen-enter {
  animation: screen-enter-anim 250ms ease forwards;
}

.screen-exit {
  animation: screen-exit-anim 250ms ease forwards;
}
