/* Venice Enigma — WebGL Template CSS
   - Custom loading logo from: /assets/img/logo.png
   - Credit line: "Developed and maintained by portalpi.com"
*/

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0b1020;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

#unity-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  outline: none;
  background: #0b1020;
}

/* Loading overlay */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 86vw);
  text-align: center;
  display: none; /* shown by JS */
  user-select: none;
}

#unity-logo {
  width: min(320px, 72vw);
  height: min(180px, 26vh);
  margin: 0 auto 14px;
  background: url('../assets/img/logo.png') no-repeat center;
  background-size: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}

#unity-progress-bar-empty {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.65), rgba(255,196,74,0.95));
}

#portalpi-credit {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

#portalpi-credit span {
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

/* Footer */
#unity-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.unity-mobile #unity-footer { display: none; }

#unity-build-title {
  pointer-events: none;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 600;
}

#unity-fullscreen-button {
  pointer-events: auto;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08) url('fullscreen-button.png') no-repeat center;
  background-size: 18px 18px;
  border: 1px solid rgba(255,255,255,0.12);
}

#unity-fullscreen-button:hover {
  background-color: rgba(255,255,255,0.14);
}

/* Banners */
#unity-warning {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 50;
  display: none;
  border-radius: 12px;
  overflow: hidden;
}
