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

html {
  background: var(--bg);
  overflow: hidden;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  position: fixed;
  inset: 0;
  overflow: hidden;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--selection); color: var(--text); }
:focus-visible { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring);
}

img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }
