html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
/* Fill the browser tab — Unity matches WebGL backing size to canvas CSS size (default matchWebGLToCanvasSize). */
#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
#unity-container.unity-desktop,
#unity-container.unity-mobile {
  left: 0;
  top: 0;
  transform: none;
}
#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #231F20;
}
#unity-loading-bar {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20;
  background: radial-gradient(1200px 600px at 50% 50%, rgba(42, 42, 48, 0.55), rgba(10, 10, 12, 0.82));
  backdrop-filter: blur(2px);
}
#unity-loading-bar.is-ready {
  opacity: 0;
  transition: opacity 220ms ease-out;
}
#vibejam-loading-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 40px));
  border-radius: 16px;
  padding: 20px 18px 18px;
  background: rgba(18, 18, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: #f2f2f3;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#vibejam-loading-title { font-size: 20px; font-weight: 600; letter-spacing: 0.2px; margin-top: 2px; }
#vibejam-loading-status { font-size: 13px; color: rgba(255, 255, 255, 0.78); margin-top: 6px; }
/* Pill track + fill (CSS) — rounded like iOS / Apple search field; no square PNG caps. */
#unity-progress-bar-empty {
  width: 100%;
  height: 11px;
  margin: 14px auto 0;
  border-radius: 9999px;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  margin: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, #64b5f6 0%, #0a84ff 55%, #5e5ce6 100%);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.35);
  transition: width 140ms ease-out;
}
#vibejam-loading-percent { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.84); font-variant-numeric: tabular-nums; }
/* Black tile + white vector icon (no Unity PNG — avoids all-blue blob). */
#unity-fullscreen-button {
  display: none;
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 30;
  cursor: pointer;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #0a0a0a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
#unity-fullscreen-button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M7%2014H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12%207h-3v2h5v-5h-2v3zM14%205v2h3v3h2V5h-5z%22%2F%3E%3C%2Fsvg%3E")
    center / contain no-repeat;
}
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 40 }
