body {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

::selection {
  background: rgba(255, 255, 255, 0.12);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

dialog[open] {
  animation: fade-in 0.15s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 0.75s linear infinite;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a3548;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d4d66;
}

a,
button {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.input-masked {
  -webkit-text-security: disc;
  text-security: disc;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
