html {
  height: 100%;
  background: #070c16;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background: #070c16;
  overscroll-behavior: none;
}

.canvas-stage {
  height: 100%;
}

.touch-buttons {
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

html.os-ios .footer,
html.standalone .footer {
  top: env(safe-area-inset-top, 0px);
}

#nick,
#pass {
  background-color: #fff;
  color: #000;
  caret-color: #000;
}

#nick::placeholder,
#pass::placeholder {
  color: rgba(0, 0, 0, 0.54);
  -webkit-text-fill-color: rgba(0, 0, 0, 0.54);
  opacity: 1;
}

#nick:-webkit-autofill,
#pass:-webkit-autofill,
#nick:-webkit-autofill:hover,
#pass:-webkit-autofill:hover,
#nick:-webkit-autofill:focus,
#pass:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #000;
  caret-color: #000;
}

html.form-mobile #chatX_window,
html.form-tablet #chatX_window {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 599px) {
  html.os-ios input,
  html.os-ios select,
  html.os-ios textarea {
    font-size: 16px;
  }
}

html.tier-low *,
html.tier-low *::before,
html.tier-low *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.reduce-motion .overlays *,
html.reduce-motion .overlays *::before,
html.reduce-motion .overlays *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
