/* Wild Dance Rivals - WebGL page wrapper (M156).
   The one rule that matters: the canvas is always exactly the window.
   Stock Default pins it to defaultScreenWidthWeb x defaultScreenHeightWeb
   (1344x756) and centres it with translate(-50%,-50%), so in any smaller
   window the canvas hangs off all four edges and edge-anchored in-game UI
   sits outside the visible area. No letterboxing, no fixed aspect. */

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: #0b0710;
  overflow: hidden;
}

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

#unity-canvas {
  display: block;          /* canvas is inline by default; the baseline gap
                              would otherwise force a scrollbar at 100% height */
  width: 100%;
  height: 100%;
  background: #0b0710;
}

/* ---- loading ---- */

#unity-loading-bar {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 560px);
  text-align: center;
  display: none;
  z-index: 10;
}

#unity-wordmark {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: clamp(15px, 3.4vw, 30px);
  color: #f4ecff;
  margin-bottom: 22px;
  /* letter-spacing adds a trailing gap; pull it back so the text is centred */
  text-indent: 0.26em;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(244, 236, 255, 0.14);
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b5cff, #ff5ca8);
  transition: width 0.15s linear;
}

/* ---- overlays ---- */

#unity-warning {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  max-width: 90vw;
  background: white;
  color: #111;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  padding: 10px;
  display: none;
  z-index: 20;
}

#diagnostics-icon {
  position: fixed;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  opacity: 0.55;
  cursor: pointer;
  z-index: 20;
}
#diagnostics-icon:hover { opacity: 1; }
