* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
}
body {
  overflow: hidden;
}
button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-call);
  outline-offset: 2px;
}
input {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}
svg { display: block; }

#app {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(.32,.72,0,1), opacity 200ms ease;
}
.screen[hidden] { display: none; }
.screen--enter-right { transform: translateX(100%); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
