:root {
  background: #170d35;
  color: #fff;
  font-family: Arial, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #170d35;
}

#unity-container {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #170d35;
}

/* Das Spiel bleibt immer vollständig sichtbar (16:9), statt bei kleineren
   Browserhöhen seitlich abgeschnitten zu werden. */
#unity-fullscreen-container {
  position: relative;
  width: min(100vw, calc(100vh * 1.7777778));
  height: min(100vh, calc(100vw / 1.7777778));
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background: #170d35;
}

#unity-canvas,
#unity-loading-container {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#unity-canvas { background: #170d35; }

#unity-loading-container {
  display: none;
  backdrop-filter: blur(8px);
}

#unity-loading-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url("unity-logo-dark.png") no-repeat center;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin: 10px 0 0 6.5px;
  background: url("progress-bar-empty-dark.png") no-repeat center;
}

#unity-progress-bar-full {
  width: 0;
  height: 18px;
  background: url("progress-bar-full-dark.png") no-repeat center left;
}

#unity-warning {
  position: absolute;
  top: 5%;
  left: 50%;
  display: none;
  max-width: min(90%, 640px);
  transform: translateX(-50%);
  border-radius: 10px;
  background: rgba(30, 12, 61, .92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

#unity-warning > div { padding: 12px 16px; }
.unity-warning-error { background: #c22e58; }
.unity-warning-warning { background: #c07d1b; }

@media (max-width: 700px) {
  #unity-fullscreen-container {
    width: 100vw;
    height: min(100vh, calc(100vw / 1.7777778));
  }
}
