/* Il gioco occupa tutta la finestra, senza scorrere né rimbalzare (Safari su iPad/iPhone). */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #F6EFE6; /* Theme.Background */
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#unity-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #F6EFE6;
  touch-action: none;
  outline: none;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loading-bar {
  width: min(60%, 320px);
  height: 14px;
  border: 3px solid #6B4A3A;
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
}

#loading-fill {
  width: 0%;
  height: 100%;
  background: #F4A7B9;
  transition: width 0.2s;
}

#warning {
  position: fixed;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  max-width: 90%;
  display: none;
  font-family: sans-serif;
}

#warning .notice { background: #FFF3B0; padding: 10px; border-radius: 8px; }
#warning .error { background: #E05555; color: #FFFFFF; padding: 10px; border-radius: 8px; }
