/* App-like behaviour: no rubber-band overscroll, no page scroll, no accidental
   text selection / long-press callout on the app chrome. In-app text selection
   is handled by Flutter (CanvasKit), so this does not affect copying messages. */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  overscroll-behavior: none;
  background: #7B3FF5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #121212;
  }
}

.center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Branded splash: logo + spinner instead of bare "Загрузка..." text. */
#splash .il-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

#splash .il-spinner {
  margin: 24px auto 0;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: il-spin 0.9s linear infinite;
}

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