body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

/* IMFECT: the stage holds the canvas and the group panel over it. */
/* A size container, so the panel can scale with the game (cqh = 1% of the stage's height). */
#imfect-stage { position: relative; container-type: size; }
.unity-mobile #imfect-stage { width: 100%; height: 100%; }

/* IMFECT: the group panel takes the place of the Menu's lobby box (right of the introduction,
   below the title; the game hides the box itself on the server leg, LobbiesList.cs). It
   scales with the game, windowed or full screen. See groups.css for the list. */
#imfect-groups-panel { position: absolute; left: 51%; right: 5%; top: 24%; bottom: 10%;
  font-size: clamp(10px, 2.3cqh, 24px); }
#imfect-groups-panel[hidden] { display: none; }
#imfect-groups-panel .ig-window { height: 100%; overflow: auto; border-radius: 1em; padding: 0.8em 0.8em 0.5em;
  background: rgba(255, 255, 255, 0.28); box-shadow: 0 0.4em 1.5em rgba(0,0,0,0.25);
  color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#imfect-groups-panel h1 { margin: 0 0 0.4em; font-weight: 300; font-size: 1.8em; text-align: center;
  text-shadow: 0 0.1em 0.3em rgba(0,0,0,0.3); }

/* IMFECT: full screen is the whole container, so the panel stays visible; the stage and
   canvas fill the screen and the footer goes. */
#unity-container:fullscreen { width: 100%; height: 100%; background: #000; transform: none; left: 0; top: 0; }
#unity-container:fullscreen #imfect-stage { width: 100% !important; height: 100% !important; }
#unity-container:fullscreen #unity-canvas { width: 100% !important; height: 100% !important; }
#unity-container:fullscreen #unity-footer { display: none; }
#unity-container:-webkit-full-screen { width: 100%; height: 100%; background: #000; transform: none; left: 0; top: 0; }
#unity-container:-webkit-full-screen #imfect-stage { width: 100% !important; height: 100% !important; }
#unity-container:-webkit-full-screen #unity-canvas { width: 100% !important; height: 100% !important; }
#unity-container:-webkit-full-screen #unity-footer { display: none; }
