html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a1f3f;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#unity-container {
  position: fixed;
  inset: 0;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #0a1f3f;
  outline: none;
}

#loading-screen {
  position: absolute;
  inset: 0;
  background: #0a1f3f url("background.jpg") center 30% / cover no-repeat;
  transition: opacity 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 7vh;
  background: linear-gradient(to bottom, rgba(8, 24, 52, 0), rgba(8, 24, 52, 0.9));
  text-align: center;
}

#loading-label {
  color: #ffffff;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: bold;
  letter-spacing: 0.06em;
  text-shadow: 0 3px 0 #0b2347, 0 0 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

#loading-bar {
  width: min(70vw, 720px);
  height: 22px;
  margin: 0 auto;
  border-radius: 11px;
  background: rgba(6, 18, 40, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

#loading-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 11px;
  background: linear-gradient(to bottom, #ffc23c, #ec6010);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease;
}

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

.banner-error {
  background: #f44;
  color: #fff;
  padding: 10px;
}

.banner-warning {
  background: #ff0;
  padding: 10px;
}
