* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  /* чтобы не прыгал скролл на мобилках */
  overscroll-behavior: none;
  touch-action: manipulation;
}

#game-container {
  width: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  position: relative;
  overflow: hidden;
}

#game-container canvas {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
}

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

#phaser-loading-screen img {
  width: clamp(133px, 20vmin, 280px);
  height: clamp(133px, 20vmin, 280px);
  animation: loading-spin 5s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

#rotate-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  z-index: 99999;
  text-align: center;
  padding: 24px;
  pointer-events: auto;
  font-family: "Calibri", system-ui, "Segoe UI", Roboto, Arial;
}

#rotate-box {
  max-width: 420px;
}

#rotate-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}

#rotate-text {
  margin: 10px 0 0;
  opacity: 0.85;
}

