html, body { padding: 0; margin: 0;  width: 100%; height: 100%; background: #FFFFFF; overflow: hidden; }
html, body, #unity-container, canvas { touch-action: none; -ms-touch-action: none; -webkit-user-select: none; user-select: none;  }
body { display: flex; align-items: center; justify-content: center; }
#unity-container { background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
#unity-container.unity-common { position: absolute; height: 100%; aspect-ratio: 9 / 16; }
#unity-container.unity-mobile { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
#unity-container.unity-desktop-full { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #FFFFFF; pointer-events: auto; outline: none; -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */ }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#pinpin-logo { width: 154px; height: 154px; background: url('pinpin-logo.jpg') no-repeat bottom; background-size: cover; display: block; }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full.png') no-repeat center }
#unity-footer { position: relative; display: none; }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

/* Corner buttons (fullscreen bottom-left, install bottom-right). Icon of the fullscreen
   toggle swaps via the .fullscreen-on class. */
#unity-fullscreen-button, #unity-install-button {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  width: 48px; height: 48px; padding: 0;
  border: none; outline: none; background-color: transparent;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  cursor: pointer; z-index: 10; opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); touch-action: manipulation;
}
#unity-fullscreen-button:hover, #unity-install-button:hover { opacity: 1; }
#unity-fullscreen-button {
  left: calc(env(safe-area-inset-left, 0px) + 14px);
  background-image: url('FullScreen.png');
}
#unity-fullscreen-button.fullscreen-on { background-image: url('ShrinkScreen.png'); }
#unity-install-button {
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  background-image: url('InstallApp.png');
}
#unity-install-button[hidden] { display: none; }
/* Visibility for installed-PWA contexts is handled in JS (see index.html), not via a
   display-mode media query — that query also matches the Fullscreen API and would hide the
   button the moment the user toggles fullscreen. */
