html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: black;
  overflow: hidden;
}

.webgl-content {
  width: 100vw;
  height: var(--app-height, 100vh);
  position: fixed;
  left: 0;
  top: 0;
  background: black;      /* bars */
  display: grid;
  place-items: center;    /* center the 16:9 box */
}

.centered {
  position: relative;
  aspect-ratio: 16 / 9;   /* fixed 16:9 */
  width: min(100vw, calc(var(--app-height, 100vh) * (16/9)));
  height: auto;           /* implied by aspect-ratio */
}

#unity-container, #unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@supports (height: 100dvh) {
  .webgl-content { height: 100dvh; }
}

.loader {
  background-color: white;
}

.loader .progressbar {
  position: absolute;
  width: 50%;
  height: 10%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background: url(./loader-background.png) center / 100% 100% no-repeat;
  overflow: hidden;
  border-radius: 10px;
}

.loader .mask {
  position: absolute;
  inset: 0;          /* top/right/bottom/left = 0 */
  overflow: hidden;
  margin-left: 3%;    
}

.loader .fill {
  position: absolute;
  inset: 0;
  background: url(./loader-fill.png) center / 100% 100% no-repeat;

  transform: translateX(-100%);
  will-change: transform;
}

@font-face {
  font-family: BundesSans;
  src: url(./bundes-sans.ttf);
}

.loader .info {
  position: absolute;
  font-family: BundesSans;
  font-size: 20px;
  width: 70%;
  height: 150px;

  left: 50%;
  top: 75%;
  transform: translate(-50%, -25%);

  text-align: center;       /* ← center text horizontally */
  line-height: 1.3;  
}
