@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url("./assets/fonts/exo-2-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url("./assets/fonts/exo-2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html,
body,
#pixi-root {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #43b8ed;
}

#pixi-root {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
}

body {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

#pixi-root canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: url("./assets/qmania/final/preloader-background.jpg") center / cover no-repeat;
  color: #075c9e;
  font-family: "Exo 2";
  text-align: center;
}

.preloader__panel {
  width: min(420px, 100%);
  padding: 32px 24px 28px;
  box-sizing: border-box;
  border: 4px solid #fff2c4;
  border-radius: 28px;
  background: #fff4d8;
  box-shadow: 0 8px 0 #e0a643, 0 16px 30px rgb(0 72 128 / 28%);
}

.preloader__logo {
  display: block;
  width: min(340px, 92%);
  height: auto;
  margin: 0 auto 26px;
}

.preloader__spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  box-sizing: border-box;
  border: 7px solid #bce8ff;
  border-top-color: #f4a000;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff;
  animation: qmania-spin 0.9s linear infinite;
}

.preloader__status {
  min-height: 24px;
  margin: 0;
  color: #075c9e;
  font: 700 16px/1.35 "Exo 2";
  letter-spacing: 0.02em;
}

.preloader--error .preloader__spinner {
  border-color: #ffd0c9;
  border-top-color: #dc3c28;
  animation: none;
}

.preloader--error .preloader__status {
  color: #b52a1a;
}

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

@media (prefers-reduced-motion: reduce) {
  #pixi-root canvas {
    scroll-behavior: auto;
  }

  .preloader__spinner {
    animation: none;
  }
}
