*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

html {
  height: 100%;
  overflow-x: hidden;
  background: var(--rg-bg);
}

body {
  position: fixed;
  top: var(--vv-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--vvh, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--rg-bg);
  color: var(--rg-text);
  font-family: var(--rg-font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.28s ease, color 0.28s ease;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: background-color 0.25s ease, transform 0.18s ease, color 0.25s ease, opacity 0.25s ease;
}

button:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rg-accent);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--rg-line-accent);
  outline-offset: 1px;
}

ul {
  list-style: none;
}

textarea,
input,
button,
select {
  font-family: inherit;
  color: inherit;
}

[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none;
    transition: none;
  }
}
