* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #040218;
  /* чтобы не прыгал скролл на мобилках */
  overscroll-behavior: none;
  touch-action: manipulation;
}
/* Используем динамическую высоту вьюпорта (dvh), корректно с клавиатурой */
#game-container {
  width: 100%;
  height: 100dvh;
  /* ключевая строчка */
  /* fallback для старых iOS: */
  height: -webkit-fill-available;
}

/* ВАЖНО: не трогаем размер канваса. Пусть Phaser управляет. */
#game-container canvas {
  display: block;
}

/* Безопасные зоны для iOS с вырезами */
:root {
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#phaser-loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#phaser-loading-screen img {
  width: 133px;
  height: 133px;
  animation: loading-spin 5s linear infinite;
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/*# sourceMappingURL=auth.css.map*/