html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #040d18;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#unity-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #040d18;
  touch-action: none;
  -webkit-touch-callout: none;
}

/* Custom Centered Pirate Loading Screen */
#game-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0e2949 0%, #051324 65%, #02070e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.5s ease;
}

#loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 92vw;
  box-sizing: border-box;
}

#game-cover-image {
  max-width: 540px;
  width: 86vw;
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 185, 0, 0.3);
  border: 3px solid rgba(255, 215, 0, 0.6);
  animation: floatBanner 3s ease-in-out infinite alternate;
}

@keyframes floatBanner {
  0% {
    transform: translateY(0px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 185, 0, 0.25);
  }
  100% {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 185, 0, 0.45);
  }
}

#loading-bar-container {
  width: 86vw;
  max-width: 440px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#loading-bar-track {
  width: 100%;
  height: 18px;
  background: rgba(3, 12, 24, 0.9);
  border: 2px solid rgba(255, 215, 0, 0.7);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 185, 0, 0.25);
}

#loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFB800 0%, #FF6600 50%, #00FFAA 100%);
  border-radius: 10px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 16px rgba(255, 185, 0, 0.85);
}

#loading-status-text {
  color: #FFE680;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 200, 0, 0.5);
  text-transform: uppercase;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 1000;
}
