/* Gym Designer web page: the app fills the whole browser window, no Unity branding or footer.
   Colours and type follow Docs/UI_StyleGuide.md. */

@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  src: url("DMSans-Medium.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  src: url("DMSans-Bold.ttf") format("truetype");
  font-display: swap;
}

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

#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #FFFFFF;
  outline: none;
}

/* Loading screen: white like the start-up splash that follows it */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  transition: opacity 0.3s;
  z-index: 1;
}
#loader.done {
  opacity: 0;
  pointer-events: none;
}
#loader-icon {
  width: 72px;
  height: 72px;
}
#loader-title {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: #1A1D23;
}
#loader-track {
  margin-top: 16px;
  width: 220px;
  height: 4px;
  border-radius: 2px;
  background: #EEF0F2;
  overflow: hidden;
}
#loader-fill {
  width: 0;
  height: 100%;
  background: #E8590C;
  transition: width 0.2s;
}
#loader-status {
  margin-top: 8px;
  min-height: 14px;
  font-weight: 500;
  font-size: 11px;
  color: #707585;
}

/* Messages from the Unity loader (warnings disappear, errors stay) */
#banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  z-index: 2;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #3D4152;
}
#banner > div {
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #EEF0F2;
  border-left: 4px solid #CFD5DB;
  border-radius: 4px;
}
#banner > div.warning {
  border-left-color: #FFCA5A;
}
#banner > div.error {
  border-left-color: #FF574C;
}
