/* css/base.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  overflow: hidden;
  user-select: none;
}

input, textarea {
  user-select: text;
  font-family: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: var(--icon-2xl);
  max-height: var(--icon-2xl);
}

.icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex-shrink: 0;
}

.icon-2xs {
  width: var(--icon-2xs);
  height: var(--icon-2xs);
}

.icon-xs {
  width: var(--icon-xs);
  height: var(--icon-xs);
}

.icon-sm {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.icon-md {
  width: var(--icon-md);
  height: var(--icon-md);
}

.icon-lg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

.icon-xl {
  width: var(--icon-xl);
  height: var(--icon-xl);
}

.icon-2xl {
  width: var(--icon-2xl);
  height: var(--icon-2xl);
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.screen {
  position: absolute;
  inset: 0;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

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

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